From bcf10b57432fab3081d2c5c95f210711adc8e60b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 3 Sep 2018 21:40:36 +0200 Subject: [PATCH] page: resolve include path for placeholder names Support common files to be found without site symlinks. --- page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page.php b/page.php index dd629fd..175c2eb 100644 --- a/page.php +++ b/page.php @@ -10,7 +10,7 @@ function abort($body, $status = NULL) { function placeholder_include($name, $params = []) { - $path = "$name.php"; + $path = stream_resolve_include_path("$name.php"); if (!file_exists($path)) { return ''.$name.' ontbreekt'; } -- 2.30.0