From: Mischa POSLAWSKY Date: Wed, 26 Jun 2019 20:55:21 +0000 (+0200) Subject: page: maintain all placeholder includes in widget/ X-Git-Tag: v4.0~16 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/7213175b8391e8f47f54096fada4fdc33d82b8a1 page: maintain all placeholder includes in widget/ Move code. For great overview. --- 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) { diff --git a/contact.php b/widget/contact.php similarity index 100% rename from contact.php rename to widget/contact.php diff --git a/login/commits.php b/widget/login/commits.php similarity index 100% rename from login/commits.php rename to widget/login/commits.php diff --git a/login/edit.php b/widget/login/edit.php similarity index 100% rename from login/edit.php rename to widget/login/edit.php diff --git a/login/list.php b/widget/login/list.php similarity index 100% rename from login/list.php rename to widget/login/list.php diff --git a/login/name.php b/widget/login/name.php similarity index 100% rename from login/name.php rename to widget/login/name.php diff --git a/nieuws.php b/widget/nieuws.php similarity index 100% rename from nieuws.php rename to widget/nieuws.php diff --git a/nieuws/replies.php b/widget/nieuws/replies.php similarity index 100% rename from nieuws/replies.php rename to widget/nieuws/replies.php diff --git a/search.php b/widget/search.php similarity index 100% rename from search.php rename to widget/search.php