mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 13:08:45 +02:00
PHP 8.4
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
namespace Combodo\iTop\DataFeatureRemoval\Helper;
|
||||
|
||||
use Config;
|
||||
use MetaModel;
|
||||
use utils;
|
||||
|
||||
@@ -50,22 +49,4 @@ class DataFeatureRemovalConfig
|
||||
$oConfig = utils::GetConfig();
|
||||
$oConfig->SetModuleSetting(DataFeatureRemovalHelper::MODULE_NAME, $sParamName, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Config|null $oConfig
|
||||
*
|
||||
* @return void
|
||||
* @throws \ConfigException
|
||||
* @throws \CoreException
|
||||
*/
|
||||
public function SaveItopConfiguration(Config $oConfig = null)
|
||||
{
|
||||
if (is_null($oConfig)) {
|
||||
$oConfig = utils::GetConfig();
|
||||
}
|
||||
$sConfigFile = APPROOT.'conf/'.utils::GetCurrentEnvironment().'/config-itop.php';
|
||||
@chmod($sConfigFile, 0770); // Allow overwriting the file
|
||||
$oConfig->WriteToFile($sConfigFile);
|
||||
@chmod($sConfigFile, 0444); // Read-only
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user