mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°463 - Load localized Query Phrases at Setup (2)
This commit is contained in:
@@ -73,7 +73,7 @@ class TicketsInstaller extends ModuleInstallerAPI
|
||||
// Without test, new entries added to the data files, would be automatically loaded
|
||||
if (($sPreviousVersion === '') ||
|
||||
(version_compare($sPreviousVersion, $sCurrentVersion, '<')
|
||||
and version_compare($sPreviousVersion, '3.0.1', '<'))) {
|
||||
&& version_compare($sPreviousVersion, '3.0.1', '<'))) {
|
||||
$oDataLoader = new XMLDataLoader();
|
||||
|
||||
CMDBObject::SetTrackInfo("Initialization");
|
||||
|
||||
@@ -165,12 +165,9 @@ class XMLDataLoader
|
||||
*/
|
||||
protected function ClearKeysCache()
|
||||
{
|
||||
if(is_file($this->m_sCacheFileName))
|
||||
{
|
||||
if (is_file($this->m_sCacheFileName)) {
|
||||
unlink($this->m_sCacheFileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
//echo "<p>Hm, it looks like the file does not exist!!!</p>";
|
||||
}
|
||||
$this->m_aKeys = array();
|
||||
|
||||
Reference in New Issue
Block a user