File extension for images is now defined in settings.json

This commit is contained in:
mattbk
2015-11-03 14:43:39 -06:00
parent b048451f85
commit 88ff34bb65
2 changed files with 4 additions and 3 deletions

View File

@ -81,8 +81,8 @@ switch ($mode) {
break;
case 'phase':
$template = 'change.html.twig';
$variables['imageWithElement'] = 'img/'.$phase.'-with.jpg';
$variables['imageWithoutElement'] = 'img/'.$phase.'-without.jpg';
$variables['imageWithElement'] = 'img/'.$phase.'-with.'.$settings->filetype;
$variables['imageWithoutElement'] = 'img/'.$phase.'-without.'.$settings->filetype;
$variables['step_count'] = $index;
$variables['step_total'] = count($settings->phases);
// Store the participant ID with some simple validation to prevent SQL injection