function placeholder_include($name, $params = [])
{
- $path = "$name.php";
+ $path = stream_resolve_include_path("$name.php");
if (!file_exists($path)) {
return '<strong class="warn"><em>'.$name.'</em> ontbreekt</strong>';
}
}
return preg_replace_callback(
- '< \[\[ ([^] ]+) ([^]]*) \]\] >x',
+ '{ (?<! <!--BLOCK: ) \[\[ ([^] ]+) ([^]]*) \]\] }x',
function ($sub) use ($blocks) {
list ($placeholder, $name, $params) = $sub;
if (isset($blocks[$name])) {