* Use WikiPage instead of Article
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 16 Nov 2011 15:57:56 +0000 (15:57 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 16 Nov 2011 15:57:56 +0000 (15:57 +0000)
commit2bb8c2ea4d97d0e0b2dbe9e7f450d3f085c011ac
treee85f2fc7acb746056d3bb18974401e6b6383be9b
parentac1879e4d750b9258a8f5002df64d13cda6a6fd9
* Use WikiPage instead of Article
* Create the WikiPage object directly in execute() and pass it to both delete() and deleteFile()
* Reordered parameters of delete() and deleteFile() to be consistent and take both on the WikiPage and User objects (instead of relying on $wgUser); no callers outside of this class
* Fixed deleteFile() to match the behaviour of FileDeleteForm with oldimage parameter
* Pass the User object to getPermissionsError()
* Factorised duplicated code
* Added missing error code to ApiBase (and also a new one)
* Added missing possible error codes (with a new one too)
includes/api/ApiBase.php
includes/api/ApiDelete.php