From: Leon Weber Date: Sun, 14 Jan 2007 00:58:17 +0000 (+0000) Subject: Made Linke::userToolLinks() show the contribs link red when the user has zero edits X-Git-Tag: 1.31.0-rc.0~54424 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=59a7b940db58ce90374aada8cd4d481582dbc008;p=lhc%2Fweb%2Fwiklou.git Made Linke::userToolLinks() show the contribs link red when the user has zero edits --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b743c595c1..4620986982 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -63,6 +63,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN 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 Linke::userToolLinks() show the contribs link red when the user has zero edits == Languages updated == diff --git a/includes/Linker.php b/includes/Linker.php index cddd33dbb8..a332b83784 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -769,9 +769,17 @@ class Linker { $items[] = $this->userTalkLink( $userId, $userText ); } if( $userId ) { + // check if the user has an edit + if( $wgUser->edits( $userId ) == 0 ) { + $style = "class='new'"; + } else { + $style = ''; + } $contribsPage = SpecialPage::getTitleFor( 'Contributions', $userText ); $items[] = $this->makeKnownLinkObj( $contribsPage , - wfMsgHtml( 'contribslink' ) ); + wfMsgHtml( 'contribslink' ), + '', '', '', '', $style + ); } if( $blockable && $wgUser->isAllowed( 'block' ) ) { $items[] = $this->blockLink( $userId, $userText );