Fix backup regression "Undefined class constant 'DEFAULT_MODULE_SETTING_TIME'"

Was introduced in PR #89, woops
This commit is contained in:
Pierre Goiffon
2019-11-15 16:44:15 +01:00
parent 7235c63445
commit cdc8edb56b

View File

@@ -183,9 +183,9 @@ abstract class AbstractWeeklyScheduledProcess implements iScheduledProcess
$sProcessTime = MetaModel::GetConfig()->GetModuleSetting(
$this->GetModuleName(),
static::MODULE_SETTING_TIME,
static::DEFAULT_MODULE_SETTING_TIME
static::GetDefaultModuleSettingTime()
);
if (!preg_match('/[0-2][0-9]:[0-5][0-9]/', $sProcessTime))
if (!preg_match('/[0-2]\d:[0-5]\d/', $sProcessTime))
{
throw new ProcessInvalidConfigException($this->GetModuleName().": wrong format for setting '".static::MODULE_SETTING_TIME."' (found '$sProcessTime')");
}