X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/85cba03008bb578b92db4c9876e5e0f96c76f543..769e3ba9e234db9019a096e1d6590f902b5560e0:/page.inc.php?ds=sidebyside diff --git a/page.inc.php b/page.inc.php index 2c1fc6c..4cc6939 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,4 +1,6 @@ \n"; @@ -10,17 +12,20 @@ $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*