mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7845 Suppress risky syntax with DateTime::modify (at best, just a bad example, at worst, just a result that will vary wether PHP > 8.2 or not)
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
*/
|
||||
class WeeklyScheduledProcessMockConfig extends AbstractWeeklyScheduledProcess
|
||||
{
|
||||
const MODULE_NAME = 'TEST_SCHEDULED_PROCESS';
|
||||
const MODULE_NAME = 'itop-zabu-gomeu';
|
||||
|
||||
public function __construct($bEnabledValue, $sTimeValue)
|
||||
public function __construct($bEnabledValue, $sTimeValue, $sWeekDays)
|
||||
{
|
||||
$this->oConfig = new Config();
|
||||
$this->oConfig->SetModuleSetting(self::MODULE_NAME, self::MODULE_SETTING_ENABLED, $bEnabledValue);
|
||||
$this->oConfig->SetModuleSetting(self::MODULE_NAME, self::MODULE_SETTING_TIME, $sTimeValue);
|
||||
$this->oConfig->SetModuleSetting(self::MODULE_NAME, self::MODULE_SETTING_WEEKDAYS, 'monday, tuesday, wednesday, thursday, friday');
|
||||
$this->oConfig->SetModuleSetting(self::MODULE_NAME, self::MODULE_SETTING_WEEKDAYS, $sWeekDays);
|
||||
utils::InitTimeZone($this->oConfig);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user