From c85aab982c1fa8836625486bbe12a830c8532a1b Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Tue, 11 Feb 2014 16:31:58 +0100 Subject: [PATCH] Eliminate unnecessary local variable $userSystem. --- CRM/Core/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.25.1