mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-23 21:24:19 +00:00
update config dependencies to json
This commit is contained in:
parent
3a858648de
commit
9aaa5d5989
@ -346,14 +346,14 @@ class AppModelValidator
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!preg_match(YGGDRASIL_HOST_REGEX, str_replace(['[',']'], false, $value)))
|
if (!preg_match($this->_config->host->regex, str_replace(['[',']'], false, $value)))
|
||||||
{
|
{
|
||||||
array_push(
|
array_push(
|
||||||
$error,
|
$error,
|
||||||
sprintf(
|
sprintf(
|
||||||
_('Host "%s" not match condition "%s"'),
|
_('Host "%s" not match condition "%s"'),
|
||||||
$value,
|
$value,
|
||||||
YGGDRASIL_HOST_REGEX
|
$this->_config->host->regex
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user