xajax check for upcomming notification module

This commit is contained in:
Cornelius Weiß 2006-09-06 08:16:22 +00:00
parent a43348fc54
commit 0144a3aa92

View File

@ -1278,6 +1278,11 @@
} }
} }
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']) if ($GLOBALS['egw_info']['flags']['include_xajax'])
{ {
require_once(EGW_SERVER_ROOT.'/phpgwapi/inc/xajax.inc.php'); require_once(EGW_SERVER_ROOT.'/phpgwapi/inc/xajax.inc.php');