https://bugzilla.wikimedia.org/show_bug.cgi?id=33614

--- Comment #1 from steevithak <srainwa...@ncc.com> 2012-01-09 21:08:19 UTC ---
Found a fairly trivial fix for this. In Skin.php, I added an array_unique() to
the explode(). the line was:

$tempout = explode( "\n", $this->drawCategoryBrowser( $parenttree, $this ) );

I changed it to:

$tempout = array_unique( explode( "\n", $this->drawCategoryBrowser(
$parenttree, $this ) ) );


The only drawback now is that it still displays hidden categories, which
doesn't seem right. Probably a separate bug however.

Here's the current output from the same page as show in initial comment:

Root category
Root category > Cameras
Root category > Cameras > Cameras by first letter > B
Root category > Cameras > Cameras by first letter > C
Root category > Cameras > Medium format > 127 film
Root category > Companies > Camera makers
Root category > Countries > Italy
Root category > Countries > Italy > Bencini
Root category > Imaging media > Film > Film formats
Root category > Special categories
Root category > Templates > Wiki > Flickr image
Root category > Templates > Wiki > Hidden categories > Image by AWCam
Root category > Templates > Wiki > Hidden categories > Image by Dirk HR
Spennemann
Root category > Templates > Wiki > Hidden categories > Image by Rick Soloway
Root category > Templates > Wiki > Hidden categories > Image by jgs4309976

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to