function placeholder_include($name, $params = [])
{
- $path = stream_resolve_include_path("$name.php");
+ $path = stream_resolve_include_path("widget/$name.php");
if (!file_exists($path)) {
return '<strong class="warn"><em>'.$name.'</em> ontbreekt</strong>';
}
}
}
try {
- include "$name.php";
+ include "widget/$name.php";
return ob_get_clean();
}
catch (Exception $e) {
print '<div class="static">'."\n\n";
$found = FALSE;
-if ($Article->file) {
+if (isset($Article->raw)) {
print $Article->raw;
$found = 1;
}