Fix FAQ actions

This commit is contained in:
slawkens 2023-08-21 09:38:23 +02:00
parent 1f95a415aa
commit 30fe42939d
2 changed files with 2 additions and 1 deletions

View File

@ -206,6 +206,7 @@ else {
$_REQUEST = array_merge($_REQUEST, $vars);
$_GET = array_merge($_GET, $vars);
extract($vars);
if (strpos($path, '__database__/') !== false) {
$pageName = str_replace('__database__/', '', $path);

View File

@ -34,7 +34,7 @@ return [
['GET', 'changelog[/{page:int}]', 'changelog.php'],
[['GET', 'POST'], 'creatures[/{name:string}]', 'creatures.php'],
['GET', 'faq[/{action:string}]', 'faq.php'],
[['GET', 'POST'], 'faq[/{action:string}]', 'faq.php'],
[['GET', 'POST'], 'forum/{action:string}[/]', 'forum.php'],
['GET', 'forum/board/{id:int}[/]', 'forum/show_board.php'],