From 6df2a685ec14723d4413b8df7a95de5f183a873f Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 26 Dec 2008 17:00:18 +0100 Subject: [PATCH] fix useHeading() in tpl_youarehere() FS#1555 darcs-hash:20081226160018-7ad00-1cddbfffa6021d6534b877fb7d497dbd041e9103.gz --- inc/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/template.php b/inc/template.php index 9a4132750..2824ae2bd 100644 --- a/inc/template.php +++ b/inc/template.php @@ -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{ -- GitLab