X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/41811556ca2ca3ca29191bee012c35e5f40a3995..7213175b8391e8f47f54096fada4fdc33d82b8a1:/page.php diff --git a/page.php b/page.php index cdec9a8..5e52985 100644 --- a/page.php +++ b/page.php @@ -10,7 +10,7 @@ function abort($body, $status = NULL) { 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 ''.$name.' ontbreekt'; } @@ -28,7 +28,7 @@ function placeholder_include($name, $params = []) } } try { - include "$name.php"; + include "widget/$name.php"; return ob_get_clean(); } catch (Exception $e) {