Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -194,6 +194,7 @@ |
195 | 195 | text for a non-existent page |
196 | 196 | * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and |
197 | 197 | Special:Recentchangeslinked |
| 198 | +* Add link to user contributions in normal watchlist edit mode |
198 | 199 | |
199 | 200 | == Bugfixes since 1.10 == |
200 | 201 | |
Index: trunk/phase3/includes/WatchlistEditor.php |
— | — | @@ -411,8 +411,12 @@ |
412 | 412 | if( $redirect ) |
413 | 413 | $link = '<span class="watchlistredir">' . $link . '</span>'; |
414 | 414 | $tools[] = $skin->makeLinkObj( $title->getTalkPage(), wfMsgHtml( 'talkpagelinktext' ) ); |
415 | | - if( $title->exists() ) |
| 415 | + if( $title->exists() ) { |
416 | 416 | $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 | + } |
417 | 421 | return '<li>' |
418 | 422 | . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) |
419 | 423 | . $link . ' (' . implode( ' | ', $tools ) . ')' . '</li>'; |