Browse Source

Remove $settings['imapConnection']. Passing this to the template causes in intermittent segfault on PHP 4.3.11 (maybe others??). Since this variable is not used by the templates right now, we will simply remove it. Probably need to re-evaluate this later as the IMAP connection could be extremely useful to template developers.

stevetruckstuff 19 năm trước cách đây
mục cha
commit
2cfac6f247
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/left_main.php

+ 2 - 2
src/left_main.php

@@ -191,7 +191,7 @@ $oTemplate->assign('mailboxes', $mailbox_structure);
  * globals, which are dirty, filthy things in templates. :)
  * globals, which are dirty, filthy things in templates. :)
  */
  */
 $settings = array();
 $settings = array();
-$settings['imapConnection'] = $imapConnection;
+#$settings['imapConnection'] = $imapConnection;
 $settings['iconThemePath'] = $icon_theme_path;
 $settings['iconThemePath'] = $icon_theme_path;
 $settings['templateDirectory'] = $sTplDir;
 $settings['templateDirectory'] = $sTplDir;
 $settings['unreadNotificationEnabled'] = $unseen_notify!=1;
 $settings['unreadNotificationEnabled'] = $unseen_notify!=1;
@@ -207,4 +207,4 @@ $oTemplate->display('left_main.tpl');
 
 
 sqimap_logout($imapConnection);
 sqimap_logout($imapConnection);
 $oTemplate->display('footer.tpl');
 $oTemplate->display('footer.tpl');
-?>
+?>