From: Coleman Watts Date: Tue, 26 Nov 2013 05:59:03 +0000 (-0800) Subject: CRM-12337 - Use civiExit instead of exit X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a15daa2df573f4f93499e86b0f2d6b3193fec6e;p=civicrm-core.git CRM-12337 - Use civiExit instead of exit --- diff --git a/CRM/Admin/Page/AJAX.php b/CRM/Admin/Page/AJAX.php index 4588d0c8a9..bf1640bcc8 100644 --- a/CRM/Admin/Page/AJAX.php +++ b/CRM/Admin/Page/AJAX.php @@ -48,7 +48,6 @@ class CRM_Admin_Page_AJAX { if ($contactID) { // Set headers to encourage browsers to cache for a long time // If we want to refresh the menu we will send a different url - // @see smarty_function_crmNavigationMenu() $year = 60*60*24*364; header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $year)); header('Content-Type: application/javascript'); @@ -60,7 +59,7 @@ class CRM_Admin_Page_AJAX { $smarty->assign('navigation', $navigation); print $smarty->fetch('CRM/common/Navigation.tpl'); } - exit(); + CRM_Utils_System::civiExit(); } /**