* Factorise common code in ImagePage::delete() and allow normal page deletion if...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 15 Nov 2011 18:08:34 +0000 (18:08 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 15 Nov 2011 18:08:34 +0000 (18:08 +0000)
commitc35b82a036e9e819accb8eeba2a9648de8afdaa9
treeb87970460a862a9597171c754ab71cf28440a1ab
parent101e3cfa2d254c1ce6b7ac7cd77da3eeafa0df8a
* Factorise common code in ImagePage::delete() and allow normal page deletion if $wgUploadMaintenance is true
* Moved $wgUploadMaintenance check after permissions and read only, so that the user doesn't think the error is temporary if he both doesn't have the permission and $wgUploadMaintenance is true
* Show normal error page when $wgUploadMaintenance and added a message for the error title
* Moved watchlist updating to FileDeletForm::execute(), it has nothing to do in doDelete() (would also be executed for api requests, etc.)
* Added $user parameter to FileDeletForm::doDelete() to pass the user doing the action
* Use WikiPage instead of Article
docs/hooks.txt
includes/FileDeleteForm.php
includes/ImagePage.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc