Special:DeletedContributions: Drop 'newbies' feature
authorJames D. Forrester <jforrester@wikimedia.org>
Tue, 27 Aug 2019 20:41:00 +0000 (13:41 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Wed, 28 Aug 2019 18:09:19 +0000 (11:09 -0700)
Change-Id: I32c67fb19f50f3949ffe981488c009c82a244999

includes/specials/SpecialDeletedContributions.php

index 40d8962..902bfd7 100644 (file)
@@ -113,17 +113,15 @@ class DeletedContributionsPage extends SpecialPage {
 
                # If there were contributions, and it was a valid user or IP, show
                # the appropriate "footer" message - WHOIS tools, etc.
-               if ( $target != 'newbies' ) {
-                       $message = IP::isIPAddress( $target ) ?
-                               'sp-contributions-footer-anon' :
-                               'sp-contributions-footer';
-
-                       if ( !$this->msg( $message )->isDisabled() ) {
-                               $out->wrapWikiMsg(
-                                       "<div class='mw-contributions-footer'>\n$1\n</div>",
-                                       [ $message, $target ]
-                               );
-                       }
+               $message = IP::isIPAddress( $target ) ?
+                       'sp-contributions-footer-anon' :
+                       'sp-contributions-footer';
+
+               if ( !$this->msg( $message )->isDisabled() ) {
+                       $out->wrapWikiMsg(
+                               "<div class='mw-contributions-footer'>\n$1\n</div>",
+                               [ $message, $target ]
+                       );
                }
        }