X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/7333dc046075c7873b15643ecd73f6e3b32c7a79..4e1394082f1446017534b9c3d423a35d483da6ab:/page.inc.php diff --git a/page.inc.php b/page.inc.php index bc2c57d..654f37f 100644 --- a/page.inc.php +++ b/page.inc.php @@ -12,13 +12,30 @@ $nav = preg_replace_callback('{(.*?)}', function ($m) { $html = $request == $m[1] ? $m[2] : $m[0]; # text or full link return $m[1] == substr($request, 0, strlen($m[1])) ? "$html" : $html; }, $nav); +if (isset($User)) { + $nav = preg_replace('{\s*