[cleanup] Remove deprecated pattern &CRM_Core_Config::singleton()
[civicrm-core.git] / CRM / Utils / System / Base.php
index 0ad46528d4162e2e9266eb73ede5072faf36cd9b..a83754f7cf651899b056af88dabdec84f2a8089e 100644 (file)
@@ -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.');