Use global notification object
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Feb 2010 19:35:23 +0000 (12:35 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Feb 2010 19:58:30 +0000 (12:58 -0700)
12 files changed:
babel/lib/base.php
beatnik/lib/base.php
crumb/lib/base.php
fima/lib/base.php
folks/lib/base.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/Scenario.php
horde/services/ajax.php
kastalia/lib/base.php
koward/lib/Koward.php
news/lib/base.php
skoli/lib/base.php
vilma/lib/base.php

index ace3fff..ccb657f 100644 (file)
@@ -22,10 +22,6 @@ if (!defined('BABEL_BASE')) {
 /* Load the Horde Framework core, and set up inclusion paths. */
 require_once HORDE_BASE . '/lib/core.php';
 
-/* Notification system. */
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 /* Registry. */
 $registry = new Horde_Registry();
 
index 3c07b9d..d17e49a 100644 (file)
@@ -39,10 +39,6 @@ if (!defined('BEATNIK_BASE')) {
     define('BEATNIK_BASE', dirname(__FILE__) . '/..');
 }
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Beatnik base libraries.
 require_once BEATNIK_BASE . '/lib/Beatnik.php';
 require_once BEATNIK_BASE . '/lib/Driver.php';
index a883269..47d1856 100644 (file)
@@ -29,10 +29,6 @@ try {
 $conf = &$GLOBALS['conf'];
 @define('CRUMB_TEMPLATES', $registry->get('templates'));
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Define the base file path of Crumb.
 @define('CRUMB_BASE', dirname(__FILE__) . '/..');
 
index 68337bd..73ab3c5 100644 (file)
@@ -38,10 +38,6 @@ if (!defined('FIMA_BASE')) {
     @define('FIMA_BASE', dirname(__FILE__) . '/..');
 }
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Fima base library
 require_once FIMA_BASE . '/lib/Driver.php';
 
index 6d399cd..19480b6 100644 (file)
@@ -26,10 +26,6 @@ try {
 $conf = &$GLOBALS['conf'];
 define('FOLKS_TEMPLATES', $registry->get('templates'));
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Define the base file path of Folks.
 if (!defined('FOLKS_BASE')) {
     define('FOLKS_BASE', dirname(__FILE__) . '/..');
index 70ee55f..267adc1 100644 (file)
@@ -318,7 +318,6 @@ EOD;
 
         /** Provide the horde registry */
         $GLOBALS['registry'] = new Horde_Registry();
-        $GLOBALS['notification'] = Horde_Notification::singleton();
 
         $this->prepareFixedConfiguration();
 
index c17aba8..5d47f7d 100644 (file)
@@ -38,9 +38,7 @@ try {
     if (($e->getCode() == Horde_Registry::AUTH_FAILURE) &&
         ($action != 'LogOut')) {
         $ajax = Horde_Ajax::getInstance($app);
-        $notification = Horde_Notification::singleton();
-
-        $notification->push(str_replace('&amp;', '&', Horde_Auth::getLogoutUrl(array('reason' => Horde_Auth::REASON_SESSION))), 'horde.ajaxtimeout', array('content.raw'));
+        $GLOBALS['notification']->push(str_replace('&amp;', '&', Horde_Auth::getLogoutUrl(array('reason' => Horde_Auth::REASON_SESSION))), 'horde.ajaxtimeout', array('content.raw'));
         Horde::sendHTTPResponse(Horde::prepareResponse(null, $ajax->notificationHandler()), $ajax->responseType());
         exit;
     }
index abdf387..1f8b6cb 100644 (file)
@@ -29,10 +29,6 @@ try {
 $conf = &$GLOBALS['conf'];
 @define('KASTALIA_TEMPLATES', $registry->get('templates'));
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Define the base file path of Kastalia.
 @define('KASTALIA_BASE', dirname(__FILE__) . '/..');
 
index 16ae833..5399d59 100644 (file)
@@ -52,9 +52,6 @@ class Koward {
     {
         global $registry, $notification, $browser;
 
-        $notification = Horde_Notification::singleton();
-        $notification->attach('status');
-
         if ($webroot === null) {
             $webroot = $registry->get('webroot', 'koward');
         }
index ca74a1d..56a9a16 100644 (file)
@@ -32,10 +32,6 @@ try {
 $conf = &$GLOBALS['conf'];
 define('NEWS_TEMPLATES', $registry->get('templates'));
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Define the base file path of News.
 if (!defined('NEWS_BASE')) {
     define('NEWS_BASE', dirname(__FILE__) . '/..');
index 3565af8..5426065 100644 (file)
@@ -25,10 +25,6 @@ try {
 $conf = &$GLOBALS['conf'];
 @define('SKOLI_TEMPLATES', $registry->get('templates'));
 
-// Notification system.
-$notification = Horde_Notification::singleton();
-$notification->attach('status');
-
 // Define the base file path of Skoli.
 @define('SKOLI_BASE', dirname(__FILE__) . '/..');
 
index 50ee587..7a8217d 100644 (file)
@@ -42,10 +42,6 @@ require_once VILMA_BASE . '/lib/Driver.php';
 /* Templates */
 $template = $injector->createInstance('Horde_Template');
 
-/* Notification system. */
-$notification = &Horde_Notification::singleton();
-$notification->attach('status');
-
 /* Vilma driver. */
 $GLOBALS['vilma_driver'] = &Vilma_Driver::singleton();