mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update: fix config save
This commit is contained in:
parent
9d9c977ff1
commit
512c48adeb
@ -171,7 +171,7 @@ class ConfigController extends Controller
|
|||||||
{
|
{
|
||||||
$data = $request->validated();
|
$data = $request->validated();
|
||||||
$config = config('v2board');
|
$config = config('v2board');
|
||||||
foreach ($config as $k => $v) {
|
foreach (ConfigSave::RULES as $k => $v) {
|
||||||
if (!in_array($k, array_keys(ConfigSave::RULES))) {
|
if (!in_array($k, array_keys(ConfigSave::RULES))) {
|
||||||
unset($config[$k]);
|
unset($config[$k]);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user