Skip to content
Snippets Groups Projects
Unverified Commit a8c33ded authored by Michael Große's avatar Michael Große
Browse files

fix: print 'you are here' again for startpages

This bug was introduced in #2251
c4a386f1

Fixes #2325
parent 8ca3665e
No related branches found
No related tags found
No related merge requests found
......@@ -800,9 +800,17 @@ function tpl_youarehere($sep = null, $return = false) {
// print current page, skipping start page, skipping for namespace index
resolve_pageid('', $page, $exists);
if(isset($page) && $page == $part.$parts[$i]) return true;
if (isset($page) && $page == $part.$parts[$i]) {
if($return) return $out;
print $out;
return true;
}
$page = $part.$parts[$i];
if($page == $conf['start']) return true;
if($page == $conf['start']) {
if($return) return $out;
print $out;
return true;
}
$out .= $sep;
$out .= tpl_pagelink($page, null, true);
if($return) return $out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment