Fix registry logging events on shutdown
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 2 Apr 2010 21:38:54 +0000 (15:38 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 3 Apr 2010 01:05:35 +0000 (19:05 -0600)
framework/Core/lib/Horde.php
framework/Core/lib/Horde/Registry.php

index 169f5fa..f1f505e 100644 (file)
@@ -73,7 +73,6 @@ class Horde
      *
      * @param mixed $error   Either a string or an object with a getMessage()
      *                       method (e.g. PEAR_Error, Exception).
-     *                       @todo Better Exception handling
      * @param integer $file  The file in which the error occured.
      * @param integer $line  The line on which the error occured.
      * @param boolean $log   Log this message via logMessage()?
index 5a5cd25..26634e3 100644 (file)
@@ -368,12 +368,14 @@ class Horde_Registry
         } else {
             $GLOBALS['notification']->attach('status');
         }
+
+        register_shutdown_function(array($this, 'shutdown'));
     }
 
     /**
      * Events to do on shutdown.
      */
-    public function __destruct()
+    public function shutdown()
     {
         /* Register access key logger for translators. */
         if (!empty($GLOBALS['conf']['log_accesskeys'])) {