Add SpecialPage::getTitleValueFor()
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 9 Aug 2016 22:27:29 +0000 (15:27 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 11 Aug 2016 02:51:21 +0000 (19:51 -0700)
commit00c57269011c558ea892b4b8d4dd039d18881119
tree764cdd22ee38bcf7cf7be177b7c10faf39d090be
parentf8c7920366408199f9f45e439e054780d6f5cf2d
Add SpecialPage::getTitleValueFor()

One of the most frequent instances of Title being used where TitleValue
could be used instead is for special pages, since there is no
convenience function that returns a TitleValue object. Hopefully this
will make it easier.

Because TitleValue is stricer about validation, we need to ensure that
$subpage is in dbkey form.

Change-Id: I50457620e25dfe03eb44d6fda5aabebcbf314863
includes/specialpage/SpecialPage.php
includes/specialpage/SpecialPageFactory.php