"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

@ -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);