cleanup
This commit is contained in:
parent
ee18dd0581
commit
2e2fe4b85f
|
@ -22,7 +22,7 @@ class Router {
|
||||||
|
|
||||||
static function init() {
|
static function init() {
|
||||||
global $config;
|
global $config;
|
||||||
return new Router($_SERVER['REQUEST_METHOD'], isset($_GET['action']) ? $_GET['action'] : null, $_GET, $_POST, $_SERVER['QUERY_STRING'], $config);
|
return new Router($_SERVER['REQUEST_METHOD'], $_GET['action'] ?? array(), $_GET, $_POST, $_SERVER['QUERY_STRING'], $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user