mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#10253 added notify enforcement in metaconsole
This commit is contained in:
parent
aedf6986b3
commit
5d4c61f8c4
@ -583,6 +583,20 @@ class ConsoleSupervisor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($limit_value !== '' && $message !== '') {
|
if ($limit_value !== '' && $message !== '') {
|
||||||
|
if (is_metaconsole() === true) {
|
||||||
|
$this->notify(
|
||||||
|
[
|
||||||
|
'type' => 'NOTIF.VARIABLES.PERFORMANCE.'.$variable,
|
||||||
|
'title' => __('Incorrect config value'),
|
||||||
|
'message' => __(
|
||||||
|
$message,
|
||||||
|
$names[$variable],
|
||||||
|
$limit_value
|
||||||
|
),
|
||||||
|
'url' => '__url__index.php?sec=advanced&sec2=advanced/metasetup',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
$this->notify(
|
$this->notify(
|
||||||
[
|
[
|
||||||
'type' => 'NOTIF.VARIABLES.PERFORMANCE.'.$variable,
|
'type' => 'NOTIF.VARIABLES.PERFORMANCE.'.$variable,
|
||||||
@ -597,6 +611,7 @@ class ConsoleSupervisor
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user