[dokuwiki] "youarehere" bugreport

  • From: jm trivial <jm.trivial@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 9 Mar 2009 12:58:10 +0100

Hi,

The recent adding of the config:useheading support introduced in the
hierarchical breadcrumbs a bug.
In fact, when the wiki displays the page "A:B:C:D", the hierarchical
breadcrumbs now displays "A > A:B > A:B:C > A:B:C:D" rather than "A >
B > C > D"

A simple modification of the inc/template.php described here should
correct this bug.
On line 878, substitution the line
$title = useHeading('navigation') ? p_get_first_heading($page) : $page;
by
$title = useHeading('navigation') ? p_get_first_heading($page) : $parts[$i];
Do the same replacing at line 892.

After this modification, I think lines 879 and 893 useless and can be removed.
if(!$title) $title = $parts[$i];

Thanks,

jm


-- 
jm  .oO ( http://jmtrivial.info )
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts:

  • » [dokuwiki] "youarehere" bugreport - jm trivial