X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/297195ea7cb59ede5d39d7f3c56fdfd2ead376f7..72d8db8c87cf95efb73e4caeb5e637e3ed142783:/page.php diff --git a/page.php b/page.php index 554735c..b160e45 100644 --- a/page.php +++ b/page.php @@ -31,11 +31,12 @@ function getoutput($blocks = []) } elseif (file_exists("$name.php")) { ob_start(); - $Page = $GLOBALS['Page']; - $Args = $GLOBALS['Args']; + $Page = $GLOBALS['Page'] . $GLOBALS['Args']; + $Args = ''; + $Place = $GLOBALS['Place']; foreach (explode(' ', $params) as $param) { if ($set = strpos($param, '=')) { - $_GET[ substr($param, 0, $set) ] = substr($param, $set + 1); + $Place[ substr($param, 0, $set) ] = substr($param, $set + 1); } elseif (!empty($param)) { $Args .= '/'.$param; @@ -152,7 +153,7 @@ if ($Page) { } $Place += [ - 'user' => $User ? $User['name'] : '', + 'user' => empty($User) ? '' : $User['name'], 'url' => htmlspecialchars($_SERVER['REQUEST_URI']), ];