diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index acde330c..e4b3787f 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -154,6 +154,9 @@ if ($setting->getValue('maintenance')) if ($motd = $setting->getValue('system_motd')) $_SESSION['POPUP'][] = array('CONTENT' => $motd, 'TYPE' => 'info'); +// So we can display additional info +$smarty->assign('DEBUG', DEBUG); + // Make it available in Smarty $smarty->assign('PATH', 'site_assets/' . THEME); $smarty->assign('GLOBAL', $aGlobal); diff --git a/public/templates/test/master.tpl b/public/templates/test/master.tpl index f825201e..dbd14374 100644 --- a/public/templates/test/master.tpl +++ b/public/templates/test/master.tpl @@ -50,5 +50,9 @@ {if $CONTENT != "empty" or $CONTENT != ""}{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}{/if}
+ {if $DEBUG > 0}