Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -147,7 +147,8 @@ |
148 | 148 | } |
149 | 149 | |
150 | 150 | } |
151 | | - if( $rev->userCan( Revision::DELETED_TEXT ) ) { |
| 151 | + # Is there a visable previous revision? |
| 152 | + if( $rev->userCan(Revision::DELETED_TEXT) && $rev->getParentId() !== 0 ) { |
152 | 153 | $difftext = '(' . $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; |
153 | 154 | } else { |
154 | 155 | $difftext = '(' . $this->messages['diff'] . ')'; |