From: Andreas Hennings Date: Tue, 11 Feb 2014 15:31:58 +0000 (+0100) Subject: Eliminate unnecessary local variable $userSystem. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c85aab982c1fa8836625486bbe12a830c8532a1b;p=civicrm-core.git Eliminate unnecessary local variable $userSystem. --- diff --git a/CRM/Core/Config.php b/CRM/Core/Config.php index ced8152908..88cc475cd5 100644 --- a/CRM/Core/Config.php +++ b/CRM/Core/Config.php @@ -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 */