r25349 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25348‎ | r25349 | r25350 >
Date:11:10, 31 August 2007
Author:raymond
Status:old
Tags:
Comment:
* Add link to user contributions in normal watchlist edit mode
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/WatchlistEditor.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES
@@ -194,6 +194,7 @@
195195 text for a non-existent page
196196 * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and
197197 Special:Recentchangeslinked
 198+* Add link to user contributions in normal watchlist edit mode
198199
199200 == Bugfixes since 1.10 ==
200201
Index: trunk/phase3/includes/WatchlistEditor.php
@@ -411,8 +411,12 @@
412412 if( $redirect )
413413 $link = '<span class="watchlistredir">' . $link . '</span>';
414414 $tools[] = $skin->makeLinkObj( $title->getTalkPage(), wfMsgHtml( 'talkpagelinktext' ) );
415 - if( $title->exists() )
 415+ if( $title->exists() ) {
416416 $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' );
 417+ }
 418+ if( $title->getNamespace() == NS_USER ) {
 419+ $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() );
 420+ }
417421 return '<li>'
418422 . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) )
419423 . $link . ' (' . implode( ' | ', $tools ) . ')' . '</li>';

Follow-up revisions

RevisionCommit summaryAuthorDate
r25372Merged revisions 25338-25371 via svnmerge from...david18:18, 31 August 2007
r25394Revert r25349 and offspring; the watchlist editor shows titles, not users - a...robchurch17:57, 1 September 2007
r25415Merged revisions 25372-25414 via svnmerge from...david21:15, 2 September 2007
r25451Re-revert of r25349 per Brion on...raymond18:21, 3 September 2007
r25454Merged revisions 25415-25453 via svnmerge from...david19:27, 3 September 2007

Status & tagging log