* Merged WikiPage::updateRestrictions() and Title::updateTitleProtection() into WikiP...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 18 Dec 2011 16:01:31 +0000 (16:01 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 18 Dec 2011 16:01:31 +0000 (16:01 +0000)
commit46c5d3edad6b9f07aa49ca382912019f4081f7a0
tree42567d8c4332b4897386b6ac56641e554b7c6f2c
parent921bced830bf57dc69fa867a6c92894c54d1b365
* Merged WikiPage::updateRestrictions() and Title::updateTitleProtection() into WikiPage::doUpdateRestrictions(); older methods still work for backward compatibility, but marked Title::updateTitleProtection() as deprecated and for removal in 1.20 since no extension calls it
* Removed permissions check from WikiPage::doUpdateRestrictions() and left it for callers, resolves the todo from documentation
* Inverted $expiry and $reason parameter between WikiPage::doUpdateRestrictions() and WikiPage::updateRestrictions() for more consistency; WikiPage::doUpdateRestrictions() also requires all parameters to be passed
* WikiPage::doUpdateRestrictions() returns a Status object instead of bool for the older one; only possible error at the moment is a read-only database
* Updated core calls to these functions
* Made maintenance scripts using it simply protect all actions returned by Title::getRestrictionTypes() instead of hardcoded 'edit' and 'move'
* This also means that protect.php can be used to protect a non-existing page for creation
includes/Article.php
includes/Title.php
includes/WikiPage.php
includes/api/ApiProtect.php
maintenance/importImages.php
maintenance/protect.php