(follow up r79706 to address CR comments) Simplify some of the logic in LinksUpdate.php
authorBrian Wolff <bawolff@users.mediawiki.org>
Sat, 5 Feb 2011 02:16:13 +0000 (02:16 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sat, 5 Feb 2011 02:16:13 +0000 (02:16 +0000)
commit13bb571b11663aaa51c28e39ae345ac1bafd8e06
tree68650ebfddca3c3c9e74c846a1a0abee0bff74dd
parentfbbdd9edd920477fc710cc0fd4ccdb1acb1fd30e
(follow up r79706 to address CR comments) Simplify some of the logic in LinksUpdate.php

Make it so that by default, the parser consdiers categories to have a sortkey of "" unless
specified otherwise. Before, the parser said the sortkey was the page name, and then in LinksUpdate
we reset the sortkey (prefix) to "" if it was the same as the page name.

This way, the parser uniformly outputs the sortkey prefix, instead of a mix between prefix or pagename.

It should be noted, this changes the output of api.php?action=parse for categories that do not have
a sortkey.
includes/LinksUpdate.php
includes/parser/Parser.php