/* Initialize notification object. Always attach status listener by
* default. Default status listener can be overriden through the
- * $_SESSION['horde_notification']['override'] variable. */
+ * 'notification_override' session variable. */
$GLOBALS['notification'] = $injector->getInstance('Horde_Notification');
if (Horde_Util::getFormData('ajaxui') &&
- isset($_SESSION['horde_notification']['override'])) {
- require_once $_SESSION['horde_notification']['override'][0];
- $GLOBALS['notification']->attach('status', null, $_SESSION['horde_notification']['override'][1]);
+ ($override = $session['horde:notification_override'])) {
+ require_once $override[0];
+ $GLOBALS['notification']->attach('status', null, $override[1]);
} else {
$GLOBALS['notification']->attach('status');
}
/* Indicate that notifications should use AJAX mode. */
if ($session['imp:view'] == 'dimp') {
- // TODO
- $_SESSION['horde_notification']['override'] = array(
+ $GLOBALS['session']['horde:notification_override'] = array(
IMP_BASE . '/lib/Notification/Listener/AjaxStatus.php',
'IMP_Notification_Listener_AjaxStatus'
);
/* Suppress menus in prefs screen and indicate that notifications should use
* the ajax mode. */
-$_SESSION['horde_notification']['override'] = array(
+$session['horde:notification_override'] = array(
KRONOLITH_BASE . '/lib/Notification/Listener/AjaxStatus.php',
'Kronolith_Notification_Listener_AjaxStatus'
);