git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: store placeholder values in $Page object
[minimedit.git]
/
page.inc.php
diff --git
a/page.inc.php
b/page.inc.php
index 78cca99f070bcd61e1e4c06e0ed1972680fab489..afaa970868493fc3f509966f11576e47a3e3c64b 100644
(file)
--- a/
page.inc.php
+++ b/
page.inc.php
@@
-1,5
+1,5
@@
<?php
<?php
-$body = $Page->render(
@$Place
);
+$body = $Page->render();
include_once 'head.inc.php';
include_once 'head.inc.php';
@@
-30,7
+30,8
@@
if ($User and property_exists($User, 'login') and $User->login) {
}
print "</p></div>\n";
}
}
print "</p></div>\n";
}
-$nav = $menu->render(['login' => ob_get_clean()]);
+$menu->place['login'] = ob_get_clean();
+$nav = $menu->render();
$nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
$request = $_SERVER['REQUEST_URI'];
$nav = preg_replace_callback('{<a href="([^"]+)">(.*?)</a>}', function ($m) {
$request = $_SERVER['REQUEST_URI'];