git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
edit: restore placeholders on edit
[minimedit.git]
/
page.php
diff --git
a/page.php
b/page.php
index 6d98863165e670b5d55cc8793fb89b89777ad62a..9e3388ee0757cc27a3d384066c74799d1f805ade 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-62,7
+62,7
@@
if ($Page) {
{
$rep = [];
foreach ($blocks as $name => $html) {
- $rep["[[$name]]"] =
$html
;
+ $rep["[[$name]]"] =
"<!--BLOCK $name-->$html<!--/-->"
;
}
return str_replace(array_keys($rep), array_values($rep), ob_get_clean());
}