N°463 - Load localized Query Phrases at Setup (2)

This commit is contained in:
vdumas
2021-03-26 09:14:03 +01:00
parent 8fa9147dc1
commit 6b5cbfb64e
2 changed files with 3 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ class TicketsInstaller extends ModuleInstallerAPI
// Without test, new entries added to the data files, would be automatically loaded // Without test, new entries added to the data files, would be automatically loaded
if (($sPreviousVersion === '') || if (($sPreviousVersion === '') ||
(version_compare($sPreviousVersion, $sCurrentVersion, '<') (version_compare($sPreviousVersion, $sCurrentVersion, '<')
and version_compare($sPreviousVersion, '3.0.1', '<'))) { && version_compare($sPreviousVersion, '3.0.1', '<'))) {
$oDataLoader = new XMLDataLoader(); $oDataLoader = new XMLDataLoader();
CMDBObject::SetTrackInfo("Initialization"); CMDBObject::SetTrackInfo("Initialization");

View File

@@ -165,12 +165,9 @@ class XMLDataLoader
*/ */
protected function ClearKeysCache() protected function ClearKeysCache()
{ {
if(is_file($this->m_sCacheFileName)) if (is_file($this->m_sCacheFileName)) {
{
unlink($this->m_sCacheFileName); unlink($this->m_sCacheFileName);
} } else {
else
{
//echo "<p>Hm, it looks like the file does not exist!!!</p>"; //echo "<p>Hm, it looks like the file does not exist!!!</p>";
} }
$this->m_aKeys = array(); $this->m_aKeys = array();