X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FBase.php;h=a83754f7cf651899b056af88dabdec84f2a8089e;hb=f3a87cf4c56278ddf6298806de476329f45dcf11;hp=0ad46528d4162e2e9266eb73ede5072faf36cd9b;hpb=303017a1f28854832ea4b6a34b0960bb9140e0e3;p=civicrm-core.git diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index 0ad46528d4..a83754f7cf 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -254,10 +254,9 @@ abstract class CRM_Utils_System_Base { } $out = $content; - $config = &CRM_Core_Config::singleton(); if ( !$print && - $config->userFramework == 'WordPress' + CRM_Core_Config::singleton()->userFramework == 'WordPress' ) { if (!function_exists('is_admin')) { throw new \Exception('Function "is_admin()" is missing, even though WordPress is the user framework.');