r25391 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25390‎ | r25391 | r25392 >
Date:17:35, 1 September 2007
Author:rotem
Status:old
Tags:
Comment:
Don't show contributions link to user subpages in the watchlist editor.
Modified paths:
  • /trunk/phase3/includes/WatchlistEditor.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WatchlistEditor.php
@@ -414,7 +414,7 @@
415415 if( $title->exists() ) {
416416 $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' );
417417 }
418 - if( $title->getNamespace() == NS_USER ) {
 418+ if( $title->getNamespace() == NS_USER && $title->getText() == $title->getBaseText() ) {
419419 $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() );
420420 }
421421 return '<li>'

Follow-up revisions

RevisionCommit summaryAuthorDate
r25415Merged revisions 25372-25414 via svnmerge from...david21:15, 2 September 2007
r25477apiedit: Merging r25391 and beyond from trunkcatrope14:50, 4 September 2007

Status & tagging log