From: stevetruckstuff Date: Thu, 5 Oct 2006 21:59:04 +0000 (+0000) Subject: Add javascript_on to the list of variables that are always available to templates. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4b1450520bf9330d97046991a82bc79a501b8a8a;p=squirrelmail.git Add javascript_on to the list of variables that are always available to templates. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11837 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/init.php b/include/init.php index 1a5e00ed..f58bf546 100644 --- a/include/init.php +++ b/include/init.php @@ -543,7 +543,7 @@ if (!isset($sTemplateID)) { $oTemplate = Template::construct_template($sTemplateID); // We want some variables to always be available to the template -$always_include = array('sTemplateID', 'icon_theme_path'); +$always_include = array('sTemplateID', 'icon_theme_path', 'javascript_on'); foreach ($always_include as $var) { $oTemplate->assign($var, (isset($$var) ? $$var : NULL)); } diff --git a/src/signout.php b/src/signout.php index e7082fe9..7a19b4e9 100644 --- a/src/signout.php +++ b/src/signout.php @@ -55,7 +55,7 @@ if ( !isset($oTemplate) || !is_object($oTemplate) ) { $oTemplate = Template::construct_template($sTemplateID); // We want some variables to always be available to the template - $always_include = array('sTemplateID', 'icon_theme_path'); + $always_include = array('sTemplateID', 'icon_theme_path', 'javascript_on'); foreach ($always_include as $var) { $oTemplate->assign($var, (isset($$var) ? $$var : NULL)); }