(bug 17000) Special:RevisionDelete now checks if the database is locked before trying...
authorX! <soxred93@users.mediawiki.org>
Tue, 13 Jan 2009 01:50:28 +0000 (01:50 +0000)
committerX! <soxred93@users.mediawiki.org>
Tue, 13 Jan 2009 01:50:28 +0000 (01:50 +0000)
RELEASE-NOTES
includes/specials/SpecialRevisiondelete.php

index a0e2b98..73adba6 100644 (file)
@@ -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
index 74b118e..1e78d35 100644 (file)
@@ -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' );