CRM-15524 - Avoid loading profileSelector scripts in ajax mode
authorColeman Watts <coleman@civicrm.org>
Tue, 4 Nov 2014 02:05:31 +0000 (21:05 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 4 Nov 2014 02:05:31 +0000 (21:05 -0500)
This commit tweaks the call of CRM_Core_Resources::isAjaxMode to use the simpler static method.

CRM/UF/Page/ProfileEditor.php

index 3ee072bd2947df80e547c74b61b3dbb4f4ae951a..441e6b7e2eb98623b5bc4a198c0cb1c53ed1225b 100644 (file)
@@ -13,7 +13,7 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
 
   static function registerProfileScripts() {
     static $loaded = FALSE;
-    if ($loaded || CRM_Core_Resources::singleton()->isAjaxMode()) {
+    if ($loaded || CRM_Core_Resources::isAjaxMode()) {
       return;
     }
     $loaded = TRUE;