From: Mischa POSLAWSKY Date: Tue, 12 Sep 2017 19:07:05 +0000 (+0200) Subject: page: include path in page includes X-Git-Tag: v2.1~19 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/9de683f8c399ee4a78fbc86b5ee96ce5662acf97 page: include path in page includes Prefer site customisations over minimedit defaults. --- diff --git a/page.inc.php b/page.inc.php index 0ca6589..b3fa5f7 100644 --- a/page.inc.php +++ b/page.inc.php @@ -1,9 +1,9 @@ \n"; ob_start(); -include 'menu.html'; +include './menu.html'; $nav = ob_get_clean(); $nav = preg_replace_callback('{(.*?)}', function ($m) { $request = $_SERVER['REQUEST_URI']; @@ -23,6 +23,6 @@ register_shutdown_function(function () { print "\n"; }); -include "$Page.html"; -if (file_exists("$Page.php")) include_once("$Page.php"); +include "./$Page.html"; +if (file_exists("$Page.php")) include_once("./$Page.php");