argh args

This commit is contained in:
Shish 2020-10-26 17:33:40 +00:00
parent 631cf29424
commit 4a5863b750

View File

@ -81,9 +81,10 @@ class AdminPage extends Extension
}
if ($event->cmd == "get-page") {
global $page;
$_SERVER['REQUEST_URI'] = $event->args[0] . "?" . $event->args[1];
$_SERVER['REQUEST_URI'] = $event->args[0];
if (isset($event->args[1])) {
parse_str($event->args[1], $_GET);
$_SERVER['REQUEST_URI'] .= "?" . $event->args[1];
}
send_event(new PageRequestEvent($event->args[0]));
$page->display();