* Refactor Title::isValidMoveOperation() and Title::moveTo() to return an array of...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 27 May 2008 14:42:51 +0000 (14:42 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 27 May 2008 14:42:51 +0000 (14:42 +0000)
commitd47835029553e2f2f0be7448bb8856fcbf6411d2
tree50de228534e53a7022d4a15a8c111c33d82fd304
parent17b3fd4b63674752a654939746fddb815879614e
* Refactor Title::isValidMoveOperation() and Title::moveTo() to return an array of arrays like Title::getUserPermissionsErrors() does; other functions used by the write API have undergone similar refactoring earlier
* Handle these return values in MovePageForm::doSubmit() and ApiMove::execute()
* Remove separate AbortMove hook calls from MovePageForm and ApiMove; these were used to capture the hook error, but the new return type handles that. Also, it resulted in two calls to that hook for each move
* Remove comment about SpecialMovepageAfterMove hook from ApiMove::execute(): we don't need it, there's the TitleMoveComplete hook for that. SpecialMovepageAfterMove is a UI hook that doesn't belong in the API
* Add imagenocrossnamespace and imagetypemismatch errors to ApiBase::$messageMap
includes/SpecialMovepage.php
includes/Title.php
includes/api/ApiBase.php
includes/api/ApiMove.php