From 869765af76cc8379427a59908fe1d5f3c40d2deb Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Thu, 14 Aug 2014 21:06:58 +1000 Subject: [PATCH 1/2] Set twigs debug state to the same as Octobers --- modules/cms/classes/Controller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index 045fb75a6..fb5c5de5a 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -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'; From 35e4f9c4fba26efd6359b15139a1b54df9af76f2 Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Thu, 14 Aug 2014 21:08:15 +1000 Subject: [PATCH 2/2] Tailing comma --- modules/cms/classes/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index fb5c5de5a..7ca9cd5a2 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -257,7 +257,7 @@ class Controller extends BaseController $options = [ 'auto_reload' => true, - 'debug' => Config::get('app.debug', false) + 'debug' => Config::get('app.debug', false), ]; if (!Config::get('cms.twigNoCache')) $options['cache'] = storage_path().'/twig';