Horde::logDeprecated() now uses Horde_Log, so the autoloader needs to be initialized
before we attempt to log anything.
try {
$GLOBALS['registry']->pushApp($app, array('check_perms' => ($args['authentication'] != 'none'), 'logintasks' => !$args['nologintasks']));
+ /* Catch and log E_DEPRECATED errors. */
+ if (defined('E_DEPRECATED')) {
+ set_error_handler(array('Horde', 'logDeprecated'), E_DEPRECATED);
+ }
if ($args['admin'] && !Horde_Auth::isAdmin()) {
throw new Horde_Exception('Not an admin');
}
* output this unless an admin. */
set_exception_handler(array('Horde', 'fatal'));
-/* Catch and log E_DEPRECATED errors. */
-if (defined('E_DEPRECATED')) {
- set_error_handler(array('Horde', 'logDeprecated'), E_DEPRECATED);
-}