aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-10-18 09:12:30 +0200
committerMario <mario@mariovavti.com>2018-10-18 09:12:30 +0200
commite9471124c00a41bcdd3abe7f1d858b51e5209ca3 (patch)
tree886cd6ac7200905b076b93abe03ad4de063b4d1c
parentfa91e2a60cce1f436b0bec946f4e147bca5752d0 (diff)
parent442d1cb48f0e01baad68b3050f1944a51b1915ae (diff)
downloadvolse-hubzilla-e9471124c00a41bcdd3abe7f1d858b51e5209ca3.tar.gz
volse-hubzilla-e9471124c00a41bcdd3abe7f1d858b51e5209ca3.tar.bz2
volse-hubzilla-e9471124c00a41bcdd3abe7f1d858b51e5209ca3.zip
Merge branch 'dev' into 'dev'
Fix template root redirection See merge request hubzilla/core!1343
-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);