git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c30da
)
page: resolve include path for placeholder names
author
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 3 Sep 2018 19:40:36 +0000
(21:40 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 3 Sep 2018 19:40:36 +0000
(21:40 +0200)
Support common files to be found without site symlinks.
page.php
patch
|
blob
|
history
diff --git
a/page.php
b/page.php
index dd629fd8d4f0f869af47c8bb84515a12e34546d8..175c2eb30f71e51c3cbf1509425b1e2987221953 100644
(file)
--- 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 '<strong class="warn"><em>'.$name.'</em> ontbreekt</strong>';
}