Solved recursion problem and increased efficiency of template_construct hook by addin...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Sep 2006 03:43:26 +0000 (03:43 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 22 Sep 2006 03:43:26 +0000 (03:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11735 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/template/template.class.php

index 4354711..f1c37c4 100755 (executable)
@@ -390,8 +390,8 @@ return substr($this->template_dir, strlen(SM_PATH));
         } else {
 
             $aPluginOutput = array();
-            $aPluginOutput = do_hook_function('template_construct', 
-                                              array($aPluginOutput, $file, $this));
+            $aPluginOutput = concat_hook_function('template_construct_' . $file,
+                                                  array($aPluginOutput, $this));
             $this->assign('plugin_output', $aPluginOutput);
 
             // pull in our config file ($t?  let's try to be more verbose please :-) )
@@ -440,8 +440,8 @@ return substr($this->template_dir, strlen(SM_PATH));
         } else {
 
             $aPluginOutput = array();
-            $aPluginOutput = do_hook_function('template_construct', 
-                                              array($aPluginOutput, $file, $this));
+            $aPluginOutput = concat_hook_function('template_construct_' . $file,
+                                                  array($aPluginOutput, $this));
             $this->assign('plugin_output', $aPluginOutput);
 
             // pull in our config file ($t?  let's try to be more verbose please :-) )