aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-10-18 07:12:30 +0000
committerMario <mario@mariovavti.com>2018-10-18 09:12:38 +0200
commitc440b758a39e2e82b43562c6605a9705d40449b3 (patch)
treee744090cd6a11084b241ea574446cbb416548cd2
parent5030c55b1ee69ad07fb080a37371f234b363fcab (diff)
downloadvolse-hubzilla-c440b758a39e2e82b43562c6605a9705d40449b3.tar.gz
volse-hubzilla-c440b758a39e2e82b43562c6605a9705d40449b3.tar.bz2
volse-hubzilla-c440b758a39e2e82b43562c6605a9705d40449b3.zip
Merge branch 'dev' into 'dev'
Fix template root redirection See merge request hubzilla/core!1343 (cherry picked from commit e9471124c00a41bcdd3abe7f1d858b51e5209ca3) 442d1cb4 Fix template root redirection
-rwxr-xr-xinclude/plugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 7a63cbfc1..8ceb6417e 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -1071,10 +1071,11 @@ function get_markup_template($s, $root = '') {
$s = \App::$override_markup_templates[$testroot][$s]["file"];
$template = $t->get_markup_template($s, $root);
} elseif (\App::$override_templateroot) {
- $newroot = \App::$override_templateroot . $root;
+ $newroot = \App::$override_templateroot;
if ($newroot != '' && substr($newroot,-1) != '/' ) {
$newroot .= '/';
}
+ $newroot .= $root;
$template = $t->get_markup_template($s, $newroot);
} else {
$template = $t->get_markup_template($s, $root);