Quick hack to support consecutive calls of getoutput() on news pages,
ignoring the original placeholder in inserted block comments and resulting
<!--BLOCK:<!--BLOCK:[[nieuws]]-->-->… output.
}
return preg_replace_callback(
}
return preg_replace_callback(
- '< \[\[ ([^] ]+) ([^]]*) \]\] >x',
+ '{ (?<! <!--BLOCK: ) \[\[ ([^] ]+) ([^]]*) \]\] }x',
function ($sub) use ($blocks) {
list ($placeholder, $name, $params) = $sub;
if (isset($blocks[$name])) {
function ($sub) use ($blocks) {
list ($placeholder, $name, $params) = $sub;
if (isset($blocks[$name])) {