Last modified: 2010-05-15 14:36:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4108, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2108 - category path ($wgUseCategoryBrowser) should be displayed consistently
category path ($wgUseCategoryBrowser) should be displayed consistently
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
PC All
: Normal trivial with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://idler.paivola.fi/betawiki/imag...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-08 09:19 UTC by lɛʁi לערי ריינהארט
Modified: 2010-05-15 14:36 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description lɛʁi לערי ריינהארט 2005-05-08 09:19:59 UTC
Halló!

both
http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=MediaWiki_talk:Choosenamespace&action=edit
and
http://jadesukka.homelinux.org:8180/mediawiki15c/index.php?title=MediaWiki_talk:Recentchangestext&action=edit

start with 
<pre>
[[Category:Follow me|{{PAGENAME}}]]
[[Category:Todo]]
</pre>

Nevertheless as you can see at
http://jadesukka.homelinux.org:8180/betawiki/Image:Category_path.jpg
the order how category paths are displayed differs

What should be done:
a) (easy to implement) displaying the paths in alphabetical order maight be
generic but it does not offer a possibility to influence it
b) (more usefull ?) display the paths in the order as specified in the code but
AVOID duplicate paths.

Regards Reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-05-08 09:30:34 UTC
additional link:
http://jadesukka.homelinux.org:8180/betawiki/Bugzilla_2108
Comment 2 lɛʁi לערי ריינהארט 2005-05-09 13:22:29 UTC
Halló!

Another example is available at:
http://jadesukka.homelinux.org:8180/betawiki/Image:Category_path_02.jpg

Regards Reinhardt [[user:gangleri]]
Comment 3 Antoine "hashar" Musso (WMF) 2005-08-11 06:01:40 UTC
The tree of categories is inverted :/ Need to find a way to inverse it
before sorting.

A path showing like:
[[world]] > [[europe]] > [[germany]]
[[america]] > [[mexic]]

Is stored as:
array(
germany => array( europe => array( world )  ),
mexic => array( america )
)

So we need to find a way to inverse it to:
array(
world => array( europe => array( germany )  ),
america => array( mexic )
)

And sort that :)
Comment 4 Antoine "hashar" Musso (WMF) 2005-08-25 00:47:28 UTC
Fixed in HEAD and 1.5, should be available in RC3 / 1.5.0.
I made a quick hack that just sort the entries. There's some issues
with categories without content as the script sort using the rendered
link.
I am too lazy to properly fix it and the hack does the job.
Comment 5 lɛʁi לערי ריינהארט 2006-01-18 01:53:49 UTC
changed url because Betawiki moved

test case / sample url:
http://idler.paivola.fi/betawiki/Albert_Einstein

Thanks Ashar fro fixing this (the order)! Probably the paths should be unique.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links