Fixed reading mode.php file for application mode

This commit is contained in:
Gregory Ballantine 2016-11-18 12:51:42 -05:00
parent 3eb6bc6340
commit 27e3534b52

View File

@ -27,7 +27,7 @@ require INC_ROOT . '/vendor/autoload.php';
// Time to create our app
$app = new Slim([
'mode' => file_get_contents(INC_ROOT . '/mode.php'),
'mode' => trim(file_get_contents(INC_ROOT . '/mode.php')),
'view' => new Twig(),
'templates.path' => INC_ROOT . '/app/views'
]);