Cleanup to deletion related code:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Nov 2011 08:55:04 +0000 (08:55 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Nov 2011 08:55:04 +0000 (08:55 +0000)
commit1e6deabe74dba897f6d626001333dc7f3e5c4fa6
tree8e541eb682d568cf963dbded7d33e72b7888b565
parentdc3e0ceeb7afba5492159eb33427cc2dc67a5c45
Cleanup to deletion related code:
* Use the new 'cannotdelete-title' message for the title on error instead of "internal error"
* Don't use OutputPage::showFatalError() but add the content by "normal" methods (related to the item above)
* Don't use the $DeleteReason and $DeleteReasonList member variables in Article and FileDeleteForm but local variables since they are not used anywhere else
* Moved down some variable definitions near where they are used so that they are only set when they will actually be used
* Same for the setPageTitle() call with 'delete-confirm' message in Article::delete() that is now in Article::confirmDelete()
* Added missing "true" as fourth parameter of WikiPage::doDeleteArticle() call that was missing
* Factorised getTitle() and getUser() calls
* Salt token with array( 'delete', 'page title' )
includes/Article.php
includes/FileDeleteForm.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc