Browse files

Create the global page_output variable before notifications.

Fixes activesync requests - some applications e.g., whups, were
accessing this global in _init:: which was causing fatal errors.
  • Loading branch information...
1 parent d5f29fd commit a1edee460ed4ff929e994a4b679038f56b06c260 @mrubinsk mrubinsk committed Apr 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 framework/Core/lib/Horde/Registry.php
View
6 framework/Core/lib/Horde/Registry.php
@@ -464,12 +464,12 @@ public function __construct($session_flags = 0, array $args = array())
break;
}
- $GLOBALS['notification'] = $injector->getInstance('Horde_Notification');
- $GLOBALS['notification']->attach('status', null, $notify_class);
-
/* Initialize global page output object. */
$GLOBALS['page_output'] = $injector->getInstance('Horde_PageOutput');
+ $GLOBALS['notification'] = $injector->getInstance('Horde_Notification');
+ $GLOBALS['notification']->attach('status', null, $notify_class);
+
register_shutdown_function(array($this, 'shutdown'));
}

0 comments on commit a1edee4

Please sign in to comment.