Skip to content
Snippets Groups Projects
Commit 6df2a685 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix useHeading() in tpl_youarehere() FS#1555

darcs-hash:20081226160018-7ad00-1cddbfffa6021d6534b877fb7d497dbd041e9103.gz
parent 1017ae2e
No related branches found
No related tags found
No related merge requests found
......@@ -875,7 +875,7 @@ function tpl_youarehere($sep=' » '){
// output
echo $sep;
if($exists){
$title = useHeading($page) ? p_get_first_heading($page) : $page;
$title = useHeading('navigation') ? p_get_first_heading($page) : $page;
if(!$title) $title = $parts[$i];
tpl_link(wl($page),hsc($title),'title="'.$page.'"');
}else{
......@@ -889,7 +889,7 @@ function tpl_youarehere($sep=' » '){
if($page == $conf['start']) return;
echo $sep;
if(page_exists($page)){
$title = useHeading($page) ? p_get_first_heading($page) : $page;
$title = useHeading('navigation') ? p_get_first_heading($page) : $page;
if(!$title) $title = $parts[$i];
tpl_link(wl($page),hsc($title),'title="'.$page.'"');
}else{
......
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