X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fleft_main.tpl;h=27fada32e99638b8a2c02ae5363c503a25cf0d49;hb=3d214f64876e08c44434d4ce6c325a5e85af5d4c;hp=2a251f56dc8a344a6a6ddd9279dd5457dec4e3c6;hpb=c2bdb921fe8006c54c49a6aa58283f98bb5d7797;p=squirrelmail.git diff --git a/templates/default/left_main.tpl b/templates/default/left_main.tpl index 2a251f56..27fada32 100644 --- a/templates/default/left_main.tpl +++ b/templates/default/left_main.tpl @@ -69,8 +69,6 @@ * @author Steve Brown */ -/** include required files */ -include_once(SM_PATH . 'templates/util_global.php'); /* * Recursively parse the mailbox structure to build the navigation tree. @@ -223,14 +221,18 @@ function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) /******** * Pulling imapConnection due to segfaults that cannot be tracked down. Best - * we can determine,its some combination of this var and >= 4 plugins enabled. + * we can determine, it's some combination of this var and >= 4 plugins enabled. * No further clue from anyone. + ******** + * Update: syntax of this hook call changed a bit, so if the error is so anomalous, + * it might be worth trying this again to see if it is still segfaulting ******** // let plugins fiddle with end of line +// FIXME: no hooks in templates! Although note that I'm not sure we can avoid it here because the context of which folder we are displaying is important to the hook, unless we preemptively iterate through all folders and collect the output from the hook call for that and give that to the template.... seems like overkill; I say this hook remains $end .= concat_hook_function('left_main_after_each_folder', - array(isset($numMessages) ? $numMessages : '', - $box['MailboxFullName'], $settings['imapConnection'])); + $temp=array(isset($numMessages) ? &$numMessages : '', + &$box['MailboxFullName'], &$settings['imapConnection'])); */ $end .= ''; @@ -261,7 +263,7 @@ extract($t); ?>
- +
@@ -279,5 +281,5 @@ extract($t);
- +