Skip to content
Snippets Groups Projects
Commit e3e8dfed authored by Jared Hancock's avatar Jared Hancock
Browse files

Don't generate staff statistics for AJAX requests

parent 88760a66
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,9 @@ if($ost->isUpgradePending() && !$exempt) {
$sysnotice.=' <a href="settings.php">Enable</a>.';
}
$nav = new StaffNav($thisstaff);
if (!defined('AJAX_REQUEST'))
$nav = new StaffNav($thisstaff);
//Check for forced password change.
if($thisstaff->forcePasswdChange() && !$exempt) {
# XXX: Call staffLoginPage() for AJAX and API requests _not_ to honor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment