CRM-12337 - Use civiExit instead of exit
authorColeman Watts <coleman@civicrm.org>
Tue, 26 Nov 2013 05:59:03 +0000 (21:59 -0800)
committerColeman Watts <coleman@civicrm.org>
Tue, 26 Nov 2013 05:59:03 +0000 (21:59 -0800)
CRM/Admin/Page/AJAX.php

index 4588d0c8a9789f969e66903bf3f2b4da6c577e93..bf1640bcc8e1aa340de3b3f3bd939ed10ae042af 100644 (file)
@@ -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();
   }
 
   /**