Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -106,16 +106,18 @@ |
107 | 107 | $desc = wfMsgHtml( 'code-rev-modified-'.strtolower( $action ) ); |
108 | 108 | $encPath = htmlspecialchars( $path ); |
109 | 109 | $viewvc = $this->mRepo->getViewVcBase(); |
| 110 | + $diff = wfMsgHtml('code-rev-diff'); |
110 | 111 | if( $viewvc ) { |
111 | 112 | $rev = $this->mRev->getId(); |
112 | 113 | $prev = $rev - 1; |
113 | 114 | $safePath = wfUrlEncode( $path ); |
114 | 115 | $link = $this->mSkin->makeExternalLink( "$viewvc$safePath?view=markup&pathrev=$rev", $encPath ); |
115 | | - $diff = $this->mSkin->makeExternalLink( "$viewvc$safePath?&pathrev=$rev&r1=$prev&r2=$rev", |
116 | | - wfMsgHtml('code-rev-diff') ); |
| 116 | + if( $action !== 'A' ) { |
| 117 | + $diff = $this->mSkin->makeExternalLink( "$viewvc$safePath?&pathrev=$rev&r1=$prev&r2=$rev", |
| 118 | + wfMsgHtml('code-rev-diff') ); |
| 119 | + } |
117 | 120 | } else { |
118 | 121 | $link = $encPath; |
119 | | - $diff = wfMsgHtml('code-rev-diff'); |
120 | 122 | } |
121 | 123 | return "<li>$link ($desc) ($diff)</li>\n"; |
122 | 124 | } |