* Made OuputPage::showPermissionsErrorPage() show a different messages for 'read...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 5 Nov 2011 19:51:05 +0000 (19:51 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 5 Nov 2011 19:51:05 +0000 (19:51 +0000)
commit3801a3cd288f01694e9953bd5fdc070e561078f7
tree39f11ee5c22630d9b3ed60469018c71de55cedfe
parent2bca9b829f5978f342960acd370daf8c83ac8469
* Made OuputPage::showPermissionsErrorPage() show a different messages for 'read', 'edit', 'create' and 'upload' actions to saying "You need to log in to do this action" when 1) The user is not logged in 2) The only error is a permissions error (no block or something else) and 3) The error can simply be avoided by logging in
* This replaces OuputPage::loginToUse() functionnality, made it simply throw a PermissionsEror exception and updated all calls in core
* Same for the check in SpecialUpload::execute(), EditPage::userNotLoggedInPage() and EditPage::noCreatePermission()
* Throw the same exception in EditPage::attemptSave() whether the user is logged in or not and let OuputPage::showPermissionsErrorPage() decide which message to display
* Replaced call to deprecated OutputPage::blockedPage() in SpecialUpload
* Displayed messages are the same as now, except the title is always "loginreqtitle"
* 'nocreatetitle' and 'uploadnologin' messages are still used by extensions, so I kept them, but the message 'whitelistedittitle' is not used anymore and has been removed
includes/Article.php
includes/EditPage.php
includes/OutputPage.php
includes/Wiki.php
includes/diff/DifferenceEngine.php
includes/specials/SpecialUpload.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc