From c6146ec6fefee8f896cedae04f6d8a91702ec102 Mon Sep 17 00:00:00 2001 From: X! Date: Tue, 13 Jan 2009 01:50:28 +0000 Subject: [PATCH] (bug 17000) Special:RevisionDelete now checks if the database is locked before trying to delete the edit. Patch by FunPika --- RELEASE-NOTES | 1 + includes/specials/SpecialRevisiondelete.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a0e2b98488..73adba6dcf 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -40,6 +40,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class) * (bug 16968) Special:Upload no longer throws useless warnings. * (bug 15470) Special:Upload no longer force-capitalizes titles +* (bug 17000) Special:RevisionDelete now checks if the database is locked before trying to delete the edit. == API changes in 1.15 == * (bug 16798) JSON encoding errors for some characters outside the BMP diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 74b118e205..1e78d35a78 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -9,6 +9,12 @@ function wfSpecialRevisiondelete( $par = null ) { global $wgOut, $wgRequest, $wgUser; + + if ( wfReadOnly() ) { + $wgOut->readOnlyPage(); + return; + } + # Handle our many different possible input types $target = $wgRequest->getText( 'target' ); $oldid = $wgRequest->getArray( 'oldid' ); -- 2.20.1