Cleanup in SpecialPage.php:
authorHappy-melon <happy-melon@users.mediawiki.org>
Mon, 18 Apr 2011 21:25:06 +0000 (21:25 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Mon, 18 Apr 2011 21:25:06 +0000 (21:25 +0000)
commit835dbefee1e3d6f0b2453dfe0ad5a3a2664fa49b
treebbbdd81854301dcea54fbb38534409a846d9dd54
parent9e86924b261652b5b9912aa2c98553735d23802a
Cleanup in SpecialPage.php:
* Enforce private access for member variables suggested since at least 1.4.  Didn't do $mName because grepping for "->mName" gave far too many results to check.
* Move the stuff related to redirects (getRedirect(), getRedirectQuery(), $mAllowedRedirectParams and $mAddedRedirectParams) to SpecialRedirectToSpecial and adjust callers
* Document stuff
* Mark getFile() as deprecated
* Group together getListed(), setListed() and listed() to draw attention to the fact that all three have been there since 1.6 and that we need to pick one and deprecate the other(s)
* add isIncludable() getter
* mark as deprecated and evil the mutators added in 1.6 for things which *really* shouldn't be mutating anywhere.  AFAICT they're not actually used many places.  Didn't deprecate including() as it's in wide use and it's legitimately set in SpecialPageFactory::executePath().
includes/SpecialPage.php
includes/SpecialPageFactory.php