mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°9409 - Create a package designer 3.3.0 - PHP 8.4
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
namespace Combodo\iTop\DataFeatureRemoval\Helper;
|
namespace Combodo\iTop\DataFeatureRemoval\Helper;
|
||||||
|
|
||||||
use Config;
|
|
||||||
use MetaModel;
|
use MetaModel;
|
||||||
use utils;
|
use utils;
|
||||||
|
|
||||||
@@ -50,22 +49,4 @@ class DataFeatureRemovalConfig
|
|||||||
$oConfig = utils::GetConfig();
|
$oConfig = utils::GetConfig();
|
||||||
$oConfig->SetModuleSetting(DataFeatureRemovalHelper::MODULE_NAME, $sParamName, $value);
|
$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