mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Merge remote-tracking branch 'origin/support/3.0' into develop
This commit is contained in:
@@ -44,9 +44,10 @@ class iTopConfigParserTest extends ItopTestCase
|
||||
parent::tearDown();
|
||||
if ($this->conf_exists) {
|
||||
// restoring config that was in place before the test
|
||||
@chmod($this->sConfigPath, 0770); // RWX for owner and group, nothing for others : else we will have permission denied !
|
||||
rename($this->tmpSavePath, $this->sConfigPath);
|
||||
@chmod($this->sConfigPath, 0444);
|
||||
$sBackupConfigFileContent = file_get_contents($this->tmpSavePath);
|
||||
$hItopConfigFile = @fopen($this->sConfigPath, 'w');
|
||||
fwrite($hItopConfigFile, $sBackupConfigFileContent);
|
||||
fclose($hItopConfigFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user