X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/7983570288ed2798470a552ec04f64aa646b664a..f065f4739ae477d8877805463017f2e7b15e2db5:/page.inc.php diff --git a/page.inc.php b/page.inc.php index 137d266..78cca99 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,11 +1,12 @@ render(@$Place); include_once 'head.inc.php'; print "
\n"; ob_start(); -include 'menu.inc.html'; +$menu = new ArchiveArticle('menu.inc.html'); +print $menu->raw; ob_start(); if ($User and property_exists($User, 'login') and $User->login) { print '

'; @@ -29,7 +30,7 @@ if ($User and property_exists($User, 'login') and $User->login) { } print "

\n"; } -$nav = getoutput(['login' => ob_get_clean()]); +$nav = $menu->render(['login' => ob_get_clean()]); $nav = preg_replace_callback('{(.*?)}', function ($m) { $request = $_SERVER['REQUEST_URI'];