mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02: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
|
// 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");
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user