HOR-4232 After the upgrade to version 3.2.2 the login is seen with the classic skin

- Add verify integrity singleton servConf
This commit is contained in:
Marco Antonio Nina Mena
2018-01-10 16:41:12 -04:00
parent 4c63633189
commit ef08a4df2c
2 changed files with 18 additions and 0 deletions

View File

@@ -484,4 +484,17 @@ class ServerConf
$lang = substr($lang, 0, 2);
return in_array($lang, $this->rtlLang);
}
/**
* Change name class of serverConf to ServerConf for version minors to 3.2.2
*/
public function syncronizeNameProperties()
{
if (file_exists(self::$instance->filePath) && filesize(self::$instance->filePath) > 0) {
$file = file_get_contents(self::$instance->filePath);
$file = str_replace('serverConf', self::class, $file);
self::$instance->unSerializeInstance($file);
$this->saveSingleton();
}
}
}