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

@ -1277,7 +1277,12 @@
$java_script .= $GLOBALS['egw']->js->get_javascript_globals(); $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']) 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');