From 65b94c828424a18d49f2affbf398e683e1bbabac Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 15 Aug 2008 09:38:58 +0000 Subject: [PATCH] "fixed config name, wrong name caused not being able to switch off popup notifications" --- notifications/inc/hook_after_navbar.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/notifications/inc/hook_after_navbar.inc.php b/notifications/inc/hook_after_navbar.inc.php index 875badd7bb..1d749d94ee 100644 --- a/notifications/inc/hook_after_navbar.inc.php +++ b/notifications/inc/hook_after_navbar.inc.php @@ -2,8 +2,8 @@ /** * eGroupWare - Notifications * serves the hook "after_navbar" to create the notificationwindow - * - * @abstract notificatonwindow is an empty and non displayed 1px div which gets rezised + * + * @abstract notificatonwindow is an empty and non displayed 1px div which gets rezised * and populated if a notification is about to be displayed. * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package notifications @@ -12,7 +12,8 @@ * @author Cornelius Weiss * @version $Id$ */ -if (!$GLOBALS['egw_info']['user']['preferences']['notifications']['disable_ajaxpopup']) { +$notification_config = config::read('notifications'); +if ($notification_config['popup_enable']) { $GLOBALS['egw']->translation->add_app('notifications'); echo ''; echo ''; @@ -28,3 +29,4 @@ if (!$GLOBALS['egw_info']['user']['preferences']['notifications']['disable_ajaxp '; } +unset($notification_config); \ No newline at end of file