*
* @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()?
} 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'])) {