load translations only if needed

This commit is contained in:
Ralf Becker 2007-04-17 05:58:08 +00:00
parent 6756894920
commit 171712fc46

View File

@ -13,8 +13,8 @@
* @version $Id$
* @todo check if user wants notifications via egw popup!
*/
$GLOBALS['egw']->translation->add_app('notifications');
if (!$GLOBALS['egw_info']['user']['preferences']['notifications']['disable_ajaxpopup']) {
$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>';
echo '