From: Coleman Watts Date: Tue, 4 Nov 2014 02:05:31 +0000 (-0500) Subject: CRM-15524 - Avoid loading profileSelector scripts in ajax mode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=daf0f4f359273a91d2fb56f67df120e5366cff3e;p=civicrm-core.git 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. --- 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;