Move always included vars to init.php because it is confusing when not logged in.
[squirrelmail.git] / class / template / template.class.php
index 238d0d1379ae8f05881985de5f44c0170f26d564..238b8ac1aead520e3b5b11d785d1f919057df3ee 100755 (executable)
@@ -203,17 +203,6 @@ class Template
    */
   function display($file)
   {
    */
   function display($file)
   {
-    /**
-     * We want to make sure that certain variables are always passed to the
-     * templates b/c they are critical to certain template functions.
-     */
-    $always_include = array('icon_theme_path', 'sTplDir');
-    foreach ($always_include as $var) {
-        if (!isset($this->values[$var]) && isset($GLOBALS[$var])) {
-            $this->assign($var, $GLOBALS[$var]);
-        }
-    }
-    
     // Pull in our config file
     $t = &$this->values; // place values array directly in scope
 
     // Pull in our config file
     $t = &$this->values; // place values array directly in scope