Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: print 'you are here' again for startpages
This bug was introduced in #2251
c4a386f

Fixes #2325
  • Loading branch information
micgro42 committed Apr 23, 2018
1 parent 8ca3665 commit a8c33de
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions inc/template.php
Expand Up @@ -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;
Expand Down

0 comments on commit a8c33de

Please sign in to comment.