From 9de683f8c399ee4a78fbc86b5ee96ce5662acf97 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 12 Sep 2017 21:07:05 +0200 Subject: [PATCH] page: include path in page includes Prefer site customisations over minimedit defaults. --- page.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"); -- 2.30.0