From daf0f4f359273a91d2fb56f67df120e5366cff3e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 3 Nov 2014 21:05:31 -0500 Subject: [PATCH] CRM-15524 - Avoid loading profileSelector scripts in ajax mode This commit tweaks the call of CRM_Core_Resources::isAjaxMode to use the simpler static method. --- CRM/UF/Page/ProfileEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/UF/Page/ProfileEditor.php b/CRM/UF/Page/ProfileEditor.php index 3ee072bd29..441e6b7e2e 100644 --- a/CRM/UF/Page/ProfileEditor.php +++ b/CRM/UF/Page/ProfileEditor.php @@ -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; -- 2.25.1