diff --git a/system/router.php b/system/router.php index 1a2cab23..3f7abd25 100644 --- a/system/router.php +++ b/system/router.php @@ -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); diff --git a/system/routes.php b/system/routes.php index 5d93bd1b..53c121a5 100644 --- a/system/routes.php +++ b/system/routes.php @@ -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'],