[dev] Re: [cvs] cvs commit: imp/config conf.php.dist

Jan Schneider jan@horde.org
Sun, 23 Dec 2001 18:28:00 +0100


Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Jan Schneider <jan@horde.org>:
> 
> > Should we include the quota bar in status.php to generate the bar on
> every 
> > page (under the status if there is one) instead of just in
> mailbox.php?
> 
> Sure, that makes sense.

Can someone please try this patch:

Index: mailbox.php
===================================================================
RCS file: /repository/imp/mailbox.php,v
retrieving revision 2.309
diff -u -r2.309 mailbox.php
--- mailbox.php	20 Dec 2001 08:17:25 -0000	2.309
+++ mailbox.php	23 Dec 2001 16:11:42 -0000
@@ -549,10 +549,6 @@
 require IMP_BASE . '/menu.php';
 require IMP_BASE . '/status.php';
 
-if (!empty($conf['hooks']['quota']) && function_exists($conf['hooks']
['quota'])) {
-      $quota_info = call_user_func($conf['hooks']['quota'], $imp);
-}
-
 require $registry->getTemplatePath() . '/mailbox/header.inc';
 $navform = 1;
 require $registry->getTemplatePath() . '/mailbox/navbar.inc';
Index: status.php
===================================================================
RCS file: /repository/imp/status.php,v
retrieving revision 2.6
diff -u -r2.6 status.php
--- status.php	5 Oct 2001 15:10:20 -0000	2.6
+++ status.php	23 Dec 2001 16:11:42 -0000
@@ -43,4 +43,8 @@
     }
     echo '</table></td></tr></table><br />';
 }
+
+if (!empty($conf['hooks']['quota']) && function_exists($conf['hooks']
['quota'])) {
+    call_user_func($conf['hooks']['quota'], $imp);
+}
 ?>

My server segfaults when accessing the folder view and I don't have debug 
compiled into apache and php.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::