deleteEqualMessages: Refactor to support all langcode subpages
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 3 May 2013 15:48:36 +0000 (17:48 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 17 May 2013 16:52:05 +0000 (18:52 +0200)
commit8be2e118fdc408492585b60a22394e93f2d15649
treed522ed1196b9f0e7d83345e9dc2260dd2ae30693
parent15ff79312dca530b4888ef618c6b25e0cba832a2
deleteEqualMessages: Refactor to support all langcode subpages

Previously it ran for either the base pages (comparing against
content language) or 1 lang-code subpage.

And the latter was actually broken as it forgot to add the
subpage back on, thus resulting in incorrect deletions
(deleting MediaWiki:Foo instead of MediaWiki:Foo/nl).

Also fixed a bug where it used the subpage lang-code to create
a Language object and call ucfirst(). Page titles should only be
capitalized by content language.

Bug: 48050
Bug: 43917
Change-Id: I2680413c276365a44c935a6f6fdd740daa86341e
maintenance/deleteEqualMessages.php