mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
"fixed config name, wrong name caused not being able to switch off popup notifications"
This commit is contained in:
parent
c1e057feb5
commit
65b94c8284
@ -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);
|
Loading…
Reference in New Issue
Block a user