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: omit numeric placeholders during edit
[minimedit.git]
/
page.php
diff --git
a/page.php
b/page.php
index 3c0977ebf776b78590b646b7b5107fc9f5159abf..c34b11c765c51425bb7f634b9921d7e003279c1a 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-65,7
+65,9
@@
if ($Page) {
{
$rep = [];
foreach ($blocks as $name => $html) {
{
$rep = [];
foreach ($blocks as $name => $html) {
- $rep["[[$name]]"] = "<!--BLOCK $name-->$html<!--/-->";
+ $rep["[[$name]]"] = sprintf('<!--BLOCK:%s-->%s<!--/-->',
+ is_numeric($name) ? '' : "[[$name]]", $html
+ );
}
return str_replace(array_keys($rep), array_values($rep), ob_get_clean());
}
}
return str_replace(array_keys($rep), array_values($rep), ob_get_clean());
}