Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -563,24 +563,13 @@ |
564 | 564 | $difftext = $topmarktext = ''; |
565 | 565 | if( $row->rev_id == $row->page_latest ) { |
566 | 566 | $topmarktext .= '<span class="mw-uctop">' . $this->messages['uctop'] . '</span>'; |
567 | | - if( !$row->page_is_new ) { |
568 | | - $difflink = $sk->linkKnown( |
569 | | - $page, |
570 | | - $this->messages['diff'], |
571 | | - array(), |
572 | | - array( 'diff' => 0 ) |
573 | | - ); |
574 | | - $difftext .= wfMsg( 'parentheses', $difflink ); |
575 | | - # Add rollback link |
576 | | - if( $page->quickUserCan( 'rollback') && $page->quickUserCan( 'edit' ) ) { |
577 | | - $topmarktext .= ' '.$sk->generateRollback( $rev ); |
578 | | - } |
579 | | - } else { |
580 | | - $difftext .= $this->messages['newarticle']; |
| 567 | + # Add rollback link |
| 568 | + if( !$row->page_is_new && $page->quickUserCan( 'rollback' ) && $page->quickUserCan( 'edit' ) ) { |
| 569 | + $topmarktext .= ' '.$sk->generateRollback( $rev ); |
581 | 570 | } |
582 | 571 | } |
583 | 572 | # Is there a visible previous revision? |
584 | | - if( !$rev->isDeleted(Revision::DELETED_TEXT) ) { |
| 573 | + if( !$rev->isDeleted( Revision::DELETED_TEXT ) && $rev->getParentId() !== 0 ) { |
585 | 574 | $difftext = $this->messages['pipe-separator'] . $sk->linkKnown( |
586 | 575 | $page, |
587 | 576 | $this->messages['diff'], |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -557,6 +557,7 @@ |
558 | 558 | false on non-special pages |
559 | 559 | * (bug 21113) "Other statistics" header on Special:Statistics is no more |
560 | 560 | displayed when there isn't any entry in it |
| 561 | +* (bug 21114) Special:Contributions no longer shows diff links for new revisions |
561 | 562 | |
562 | 563 | == API changes in 1.16 == |
563 | 564 | |