Merge pull request #549 from Flynsarmy/twigDebugState
Set twigs debug state to the same as Octobers
This commit is contained in:
commit
0980c6d997
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue