Disable caching check on Smarty globals
This will ensure data is available for those pages relying on global data. A better step might be to load template specific data always on the pages that require the data instead of relying on global data to be available. Fixes #309
This commit is contained in:
parent
bb0e9dff39
commit
d25387f0b5
@ -7,7 +7,6 @@ if (!defined('SECURITY'))
|
|||||||
// Globally available variables
|
// Globally available variables
|
||||||
$debug->append('Global smarty variables', 3);
|
$debug->append('Global smarty variables', 3);
|
||||||
|
|
||||||
if (!$smarty->isCached('master.tpl', md5(serialize($_REQUEST)))) {
|
|
||||||
$debug->append('No cached page detected, loading smarty globals', 3);
|
$debug->append('No cached page detected, loading smarty globals', 3);
|
||||||
// Defaults to get rid of PHP Notice warnings
|
// Defaults to get rid of PHP Notice warnings
|
||||||
$dDifficulty = 1;
|
$dDifficulty = 1;
|
||||||
@ -116,7 +115,4 @@ if (!$smarty->isCached('master.tpl', md5(serialize($_REQUEST)))) {
|
|||||||
// Make it available in Smarty
|
// Make it available in Smarty
|
||||||
$smarty->assign('PATH', 'site_assets/' . THEME);
|
$smarty->assign('PATH', 'site_assets/' . THEME);
|
||||||
$smarty->assign('GLOBAL', $aGlobal);
|
$smarty->assign('GLOBAL', $aGlobal);
|
||||||
} else {
|
|
||||||
$debug->append('We found a cached page, not loaded smarty globals', 3);
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user