"fixed config name, wrong name caused not being able to switch off popup notifications"

This commit is contained in:
Ralf Becker 2008-08-15 09:38:58 +00:00
parent c1e057feb5
commit 65b94c8284

View File

@ -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 <nelius@cwtech.de>
* @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 '<script src="'. $GLOBALS['egw_info']['server']['webserver_url']. '/notifications/js/notificationajaxpopup.js'. '" type="text/javascript"></script>';
echo '<script type="text/javascript">notificationwindow_init();</script>';
@ -28,3 +29,4 @@ if (!$GLOBALS['egw_info']['user']['preferences']['notifications']['disable_ajaxp
</div>
';
}
unset($notification_config);