Revert redlinks for user-tools special:contributions links for now; tim complains...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 22 Jan 2007 20:34:25 +0000 (20:34 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 22 Jan 2007 20:34:25 +0000 (20:34 +0000)
If restored, needs to be done more efficiently, with batch queries.

RELEASE-NOTES
includes/Linker.php

index f92d020..40133b9 100644 (file)
@@ -68,8 +68,6 @@ lighter making things easier to read.
   determining whether action=purge can be done via GET. Switching the
   permission on for anons can be helpful for benchmarking.
 * Unmaintained Oracle support files have been removed.
-* Made Linker::userToolLinks() show the contribs link red when the user has
-  zero edits
 * Use browser default for printing size, don't force to 11pt
 * (bug 8632) Fix regression in page protection null edit update
 * (bug 7842) Link back to deleted revision list from deleted revision preview
index 42ef97e..b7ee95a 100644 (file)
@@ -767,17 +767,9 @@ class Linker {
                        $items[] = $this->userTalkLink( $userId, $userText );
                }
                if( $userId ) {
-                       // check if the user has an edit
-                       if( User::edits( $userId ) == 0 ) {
-                               $style = "class='new'";
-                       } else {
-                               $style = '';
-                       }
                        $contribsPage = SpecialPage::getTitleFor( 'Contributions', $userText );
                        $items[] = $this->makeKnownLinkObj( $contribsPage ,
-                               wfMsgHtml( 'contribslink' ),
-                               '', '', '', '', $style
-                       );
+                               wfMsgHtml( 'contribslink' ) );
                }
                if( $blockable && $wgUser->isAllowed( 'block' ) ) {
                        $items[] = $this->blockLink( $userId, $userText );