Merge pull request #549 from Flynsarmy/twigDebugState

Set twigs debug state to the same as Octobers
This commit is contained in:
Samuel Georges 2014-08-16 18:01:33 +10:00
commit 0980c6d997
1 changed files with 4 additions and 1 deletions

View File

@ -255,7 +255,10 @@ class Controller extends BaseController
{
$this->loader = new TwigLoader();
$options = ['auto_reload' => true];
$options = [
'auto_reload' => true,
'debug' => Config::get('app.debug', false),
];
if (!Config::get('cms.twigNoCache'))
$options['cache'] = storage_path().'/twig';