git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b04f760
)
widget/page: apply nested placeholders
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 3 Dec 2020 21:57:06 +0000
(22:57 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 19 Dec 2020 02:01:43 +0000
(
03:01
+0100)
Similar to article rendering added in commit
v3.5-16-g9e9882d6f2
(2018-08-07) [nieuws: replace placeholders in article contents].
widget/page.php
patch
|
blob
|
history
diff --git
a/widget/page.php
b/widget/page.php
index 10c3a2d46d85661c0fb8e6189e90a802bedd8340..7304739e4fc2443b369f73382a87df5ada41ee24 100644
(file)
--- a/
widget/page.php
+++ b/
widget/page.php
@@
-1,2
+1,5
@@
<?php
-include ".{$Page->path}.html";
+$article = new ArchiveArticle(".{$Page->path}.html");
+ob_start();
+print $article->raw;
+print $article->render();