Remove deprecated EditPage::spamPage()
authorChad Horohoe <chadh@wikimedia.org>
Sun, 17 Nov 2013 01:17:14 +0000 (17:17 -0800)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 22 Nov 2013 04:50:34 +0000 (05:50 +0100)
Has been deprecated since 1.17, no callers anywhere in git that I
could find. One exception: AkismetKlik, which is being fixed in
I8c975f42.

Change-Id: Ie4cf4764e2223f277b8dd09d0ce629c2814e05be

RELEASE-NOTES-1.23
includes/EditPage.php

index 47a6369..89b27ad 100644 (file)
@@ -63,6 +63,7 @@ production.
   categories.
 * action=query&meta=filerepoinfo now returns additional information for each
   repo.
+* EditPage::spamPage() was deprecated since 1.17 and has been removed.
 
 === Languages updated in 1.23===
 
index be350cb..ab5856a 100644 (file)
@@ -3643,29 +3643,6 @@ HTML
                $wgOut->returnToMain( false, $this->mTitle );
        }
 
-       /**
-        * Produce the stock "your edit contains spam" page
-        *
-        * @param string|bool $match Text which triggered one or more filters
-        * @deprecated since 1.17 Use method spamPageWithContent() instead
-        */
-       static function spamPage( $match = false ) {
-               wfDeprecated( __METHOD__, '1.17' );
-
-               global $wgOut, $wgTitle;
-
-               $wgOut->prepareErrorPage( wfMessage( 'spamprotectiontitle' ) );
-
-               $wgOut->addHTML( '<div id="spamprotected">' );
-               $wgOut->addWikiMsg( 'spamprotectiontext' );
-               if ( $match ) {
-                       $wgOut->addWikiMsg( 'spamprotectionmatch', wfEscapeWikiText( $match ) );
-               }
-               $wgOut->addHTML( '</div>' );
-
-               $wgOut->returnToMain( false, $wgTitle );
-       }
-
        /**
         * Show "your edit contains spam" page with your diff and text
         *