From 88ff34bb65e048fa827057af88e5ee13768716c0 Mon Sep 17 00:00:00 2001 From: mattbk Date: Tue, 3 Nov 2015 14:43:39 -0600 Subject: [PATCH] File extension for images is now defined in settings.json --- index.php | 4 ++-- settings.json.example | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 6804ec4..e43c87a 100755 --- a/index.php +++ b/index.php @@ -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 diff --git a/settings.json.example b/settings.json.example index 9d5327a..3a79f82 100644 --- a/settings.json.example +++ b/settings.json.example @@ -13,5 +13,6 @@ ], "baseURL": "/", "debug": false, - "timezone": "America/Chicago" + "timezone": "America/Chicago", + "filetype": "jpg" } -- 2.39.5