From 948be6d49a714596b0a54854d4ec641f39e2d6ab Mon Sep 17 00:00:00 2001 From: tokul Date: Sat, 7 Oct 2006 15:32:40 +0000 Subject: [PATCH] fixed phpdoc formating. require() call loaded before first phpdoc block. improved template cache. Don't store SM_PATH information in cache. SM_PATH is ../ in main scripts, but it is ../../ in plugins. Plugin option pages break if cache stores SM_PATH. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11859 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/template/Template.class.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/class/template/Template.class.php b/class/template/Template.class.php index b9b992f4..20e82bff 100644 --- a/class/template/Template.class.php +++ b/class/template/Template.class.php @@ -1,7 +1,4 @@ $file, + 'PATH' => substr($file,strlen(SM_PATH)), 'SET_ID' => $template_set_id, 'ENGINE' => $engine, ); @@ -831,7 +832,7 @@ class Template // if (strpos($file, $filename) === 0 && strpos($file, '/', strlen($filename)) === FALSE) - $return_array[] = $file_info['PATH']; + $return_array[] = SM_PATH . $file_info['PATH']; } return $return_array; @@ -856,7 +857,7 @@ class Template } - return $this->template_file_cache[$filename]['PATH']; + return SM_PATH . $this->template_file_cache[$filename]['PATH']; } -- 2.25.1