From 14f36077c896dfcca58ea09d2084d18c5f0b83f0 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Mena Date: Thu, 11 Jan 2018 10:16:48 -0400 Subject: [PATCH] Fix CR --- workflow/engine/bin/tasks/cliUpgrade.php | 6 +++--- workflow/engine/classes/ServerConf.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/workflow/engine/bin/tasks/cliUpgrade.php b/workflow/engine/bin/tasks/cliUpgrade.php index 2a8040840..fee6d98aa 100644 --- a/workflow/engine/bin/tasks/cliUpgrade.php +++ b/workflow/engine/bin/tasks/cliUpgrade.php @@ -157,10 +157,10 @@ function run_upgrade($command, $args) } } - //Verify information singleton ServConf by change name of class. - CLI::logging("\nCheck serverConf.singleton integrity\n\n"); + //Verify the information of the singleton ServConf by changing the name of the class if is required. + CLI::logging("\nCheck/Fix serialized instance in serverConf.singleton file\n\n"); $serverConf = ServerConf::getSingleton(); - $serverConf->syncronizeNameProperties(); + $serverConf->updateClassNameInFile(); // SAVE Upgrades/Patches $arrayPatch = glob(PATH_TRUNK . 'patch-*'); diff --git a/workflow/engine/classes/ServerConf.php b/workflow/engine/classes/ServerConf.php index a42d9c357..6e5eb59a0 100644 --- a/workflow/engine/classes/ServerConf.php +++ b/workflow/engine/classes/ServerConf.php @@ -486,9 +486,9 @@ class ServerConf } /** - * Change name class of serverConf to ServerConf for version minors to 3.2.2 + * Change class name from "serverConf" to "ServerConf" for previous versions to 3.2.2 */ - public function syncronizeNameProperties() + public function updateClassNameInFile() { if (file_exists(self::$instance->filePath) && filesize(self::$instance->filePath) > 0) { $file = file_get_contents(self::$instance->filePath);