From: Brion Vibber Date: Mon, 22 Jan 2007 20:34:25 +0000 (+0000) Subject: Revert redlinks for user-tools special:contributions links for now; tim complains... X-Git-Tag: 1.31.0-rc.0~54214 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=b5ff8bd37d0977e0e8ccfb1331cd20a0ecf7d988;p=lhc%2Fweb%2Fwiklou.git Revert redlinks for user-tools special:contributions links for now; tim complains at the large number of extra queries on various changes list views. If restored, needs to be done more efficiently, with batch queries. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f92d02062c..40133b9b21 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 diff --git a/includes/Linker.php b/includes/Linker.php index 42ef97ea81..b7ee95a891 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 );