Add javascript_on to the list of variables that are always available to templates.
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 5 Oct 2006 21:59:04 +0000 (21:59 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 5 Oct 2006 21:59:04 +0000 (21:59 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11837 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/init.php
src/signout.php

index 1a5e00e..f58bf54 100644 (file)
@@ -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));
 }
index e7082fe..7a19b4e 100644 (file)
@@ -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));
     }