diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index 32d8f3dc4..7b7b3c1b1 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';