From 4b1450520bf9330d97046991a82bc79a501b8a8a Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Thu, 5 Oct 2006 21:59:04 +0000 Subject: [PATCH] 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 --- include/init.php | 2 +- src/signout.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.25.1