forked from GithubBackups/vichan
jank? maybe but it fixes our current config.php
This commit is contained in:
parent
7bc1f67b4e
commit
ac3f69a7eb
@ -2643,6 +2643,11 @@ function mod_config(Context $ctx, $board_config = false) {
|
|||||||
if ($board_config && !openBoard($board_config))
|
if ($board_config && !openBoard($board_config))
|
||||||
error($config['error']['noboard']);
|
error($config['error']['noboard']);
|
||||||
|
|
||||||
|
else {
|
||||||
|
$board_config_file = $board_config . '/config.php';
|
||||||
|
include $board_config_file;
|
||||||
|
}
|
||||||
|
|
||||||
if (!hasPermission($config['mod']['edit_config'], $board_config))
|
if (!hasPermission($config['mod']['edit_config'], $board_config))
|
||||||
error($config['error']['noaccess']);
|
error($config['error']['noaccess']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user