From 9d138704ddd7a77acaf825ada534fb9a842323f2 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 26 Nov 2018 18:28:37 +0100 Subject: [PATCH] page: prevent reparsing of placeholder blocks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Quick hack to support consecutive calls of getoutput() on news pages, ignoring the original placeholder in inserted block comments and resulting -->… output. --- page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page.php b/page.php index 175c2eb..9c88e79 100644 --- a/page.php +++ b/page.php @@ -53,7 +53,7 @@ function getoutput($blocks = []) } return preg_replace_callback( - '< \[\[ ([^] ]+) ([^]]*) \]\] >x', + '{ (?