From 09ca8b28a7d806eae493f9a6416adc4e8b1c2b47 Mon Sep 17 00:00:00 2001 From: Antonin Date: Thu, 2 Apr 2015 11:57:12 +0200 Subject: [PATCH] Added smarty developer configuration. --- app/inc/smarty.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/inc/smarty.php b/app/inc/smarty.php index c9bad47..7481e78 100644 --- a/app/inc/smarty.php +++ b/app/inc/smarty.php @@ -34,6 +34,16 @@ $smarty->assign('html_lang', $html_lang); $smarty->assign('langs', $ALLOWED_LANGUAGES); $smarty->assign('date_format', $date_format); +if ($_SERVER['FRAMADATE_DEVMODE']) { + $smarty->force_compile = true; + $smarty->compile_check = true; + +} else { + $smarty->force_compile = false; + $smarty->compile_check = false; +} + + function smarty_modifier_poll_url($poll_id, $admin = false) { return Utils::getUrlSondage($poll_id, $admin); }