* Use standard method to check user permissions
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 16 Jul 2011 19:31:18 +0000 (19:31 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 16 Jul 2011 19:31:18 +0000 (19:31 +0000)
commit1e253f81c6fd03787816946351b1ed3f858b73a5
treea33556b5aa723bbdabbf81ee90f34fc21f194516
parent9e7167bbca031ab3df537dcd36204eb3d72e82f3
* Use standard method to check user permissions
* Directly throw an ReadOnlyError instead of calling OutputPage::readOnlyPage()
* In Special:Block: don't let user think the error is temporary if he doesn't have right and the database is locked, instead check permissions first and then the database lock
includes/specials/SpecialBlock.php
includes/specials/SpecialLockdb.php
includes/specials/SpecialUnblock.php
includes/specials/SpecialUnlockdb.php