mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +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
@ -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);
|
Loading…
Reference in New Issue
Block a user