Always add $base_uri to templates
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Jan 2007 09:46:30 +0000 (09:46 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Jan 2007 09:46:30 +0000 (09:46 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12053 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/init.php
src/right_main.php
src/search.php
src/signout.php

index 054f3a7..811205f 100644 (file)
@@ -573,6 +573,7 @@ if (empty($oTemplate)) {
 
 // We want some variables to always be available to the template
 $oTemplate->assign('javascript_on', checkForJavascript());
+$oTemplate->assign('base_uri', sqm_baseuri());
 $always_include = array('sTemplateID', 'icon_theme_path');
 foreach ($always_include as $var) {
     $oTemplate->assign($var, (isset($$var) ? $$var : NULL));
index bd6fbab..ae8a188 100644 (file)
@@ -309,6 +309,7 @@ if ($aMailbox['EXISTS'] > 0) {
     $oTemplate->assign('page_selector_max', $page_selector_max);
     $oTemplate->assign('compact_paginator', $compact_paginator);
     $oTemplate->assign('javascript_on', checkForJavascript());
+    $oTemplate->assign('base_uri', sqm_baseuri());
     $oTemplate->assign('enablesort', (isset($aProps['config']['enablesort'])) ? $aProps['config']['enablesort'] : false);
     $oTemplate->assign('icon_theme_path', $icon_theme_path);
     $oTemplate->assign('aOrder', array_keys($aColumns));
index d17a13d..d536298 100644 (file)
@@ -1607,6 +1607,7 @@ if ($submit == $search_button_text) {
                         $oTemplate->assign('page_selector_max', $page_selector_max);
                         $oTemplate->assign('compact_paginator', $compact_paginator);
                         $oTemplate->assign('javascript_on', checkForJavascript());
+                        $oTemplate->assign('base_uri', sqm_baseuri());
                         $oTemplate->assign('enablesort', (isset($aProps['config']['enablesort'])) ? $aProps['config']['enablesort'] : false);
                         $oTemplate->assign('icon_theme_path', $icon_theme_path);
                         $oTemplate->assign('use_icons', (isset($use_icons)) ? $use_icons : false);
index 30180a0..3675686 100644 (file)
@@ -58,6 +58,7 @@ if ( !isset($oTemplate) || !is_object($oTemplate) ) {
 
     // We want some variables to always be available to the template
     $oTemplate->assign('javascript_on', checkForJavascript());
+    $oTemplate->assign('base_uri', sqm_baseuri());
     $always_include = array('sTemplateID', 'icon_theme_path');
     foreach ($always_include as $var) {
         $oTemplate->assign($var, (isset($$var) ? $$var : NULL));