Eliminate unnecessary local variable $userSystem.
authorAndreas Hennings <andreas@dqxtech.net>
Tue, 11 Feb 2014 15:31:58 +0000 (16:31 +0100)
committerAndreas Hennings <andreas@dqxtech.net>
Tue, 11 Feb 2014 15:31:58 +0000 (16:31 +0100)
CRM/Core/Config.php

index ced81529089d6146ecad84c980fea7344cf47290..88cc475cd5d3900f709d0655f81774efac2cc685 100644 (file)
@@ -277,7 +277,7 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
 
     $class = $this->userFrameworkClass;
     // redundant with _initVariables
-    $userSystem = $this->userSystem = new $class();
+    $this->userSystem = new $class();
 
     if ($userFramework == 'Joomla') {
       $this->userFrameworkURLVar = 'task';
@@ -308,7 +308,7 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
       $this->cleanURL = 0;
     }
 
-    $this->userFrameworkVersion = $userSystem->getVersion();
+    $this->userFrameworkVersion = $this->userSystem->getVersion();
 
     if ($userFramework == 'Joomla') {
       /** @var object|null $mainframe */