From 0144a3aa92fb148c356dda3c3156e70642e4ba27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Wed, 6 Sep 2006 08:16:22 +0000 Subject: [PATCH] xajax check for upcomming notification module --- phpgwapi/inc/class.common.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 964f2ba137..185406fc4c 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1277,7 +1277,12 @@ $java_script .= $GLOBALS['egw']->js->get_javascript_globals(); } } - + + if ($GLOBALS['egw']->acl->check('run',1,'notifications') && !$GLOBALS['egw_info']['user']['preferences']['notifications']['disable_ajaxpopup']) + { + $GLOBALS['egw_info']['flags']['include_xajax'] = true; + } + if ($GLOBALS['egw_info']['flags']['include_xajax']) { require_once(EGW_SERVER_ROOT.'/phpgwapi/inc/xajax.inc.php');