Revert self - diff links gives nice perma-link
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 11 Apr 2008 18:27:21 +0000 (18:27 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 11 Apr 2008 18:27:21 +0000 (18:27 +0000)
includes/SpecialContributions.php

index a307df1..a737b9c 100644 (file)
@@ -148,7 +148,7 @@ class ContribsPager extends ReverseChronologicalPager {
 
                }
                # Is there a visable previous revision?
-               if( $rev->userCan(Revision::DELETED_TEXT) && $rev->getParentId() !== 0 ) {
+               if( $rev->userCan(Revision::DELETED_TEXT) ) {
                        $difftext = '(' . $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')';
                } else {
                        $difftext = '(' . $this->messages['diff'] . ')';