Author: srainwater
Description:
I turned on $wgUseCategoryBrowser and discovered it displays a very large number of duplicate entries. I'm using this on a large wiki (Camera-Wiki.org) with several thousand pages and hundreds of categories. In some cases it displays the top level category entry as many as 10 or 20 times and many categories are display 3 to 5 times.
Seems like a simple fix to add code to filter out duplicates. If someone can point me to the appropriate piece of code I'd be happy to provide a patch.
Here's a typical display from the bottom of one page in our wiki:
Root category
Root category
Root category
Root category
Root category
Root category
Root category
Root category
Root category > Cameras
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 > Special categories
Root category > Special categories
Root category > Special categories
Root category > Special categories
Root category > Special categories
Root category > Special categories
Root category > Special categories
Root category > Templates > Wiki > Flickr image
Root category > Templates > Wiki > Flickr image
Root category > Templates > Wiki > Flickr image
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
Version: 1.18.x
Severity: normal