Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -147,6 +147,11 @@ |
148 | 148 | |
149 | 149 | function formatPathLine( $path, $action ) { |
150 | 150 | $desc = wfMsgHtml( 'code-rev-modified-'.strtolower( $action ) ); |
| 151 | + // Find any ' (from x)' from rename comment in the path. |
| 152 | + preg_match( '/ \([^\)]+\)$/', $path, $matches ); |
| 153 | + $from = isset($matches[0]) ? $matches[0] : ''; |
| 154 | + // Remove ' (from x)' from rename comment in the path. |
| 155 | + $path = preg_replace( '/ \([^\)]+\)$/', '', $path ); |
151 | 156 | $viewvc = $this->mRepo->getViewVcBase(); |
152 | 157 | $diff = ''; |
153 | 158 | if( $viewvc ) { |
— | — | @@ -156,7 +161,7 @@ |
157 | 162 | if( $action !== 'D' ) { |
158 | 163 | $link = $this->mSkin->makeExternalLink( |
159 | 164 | "$viewvc$safePath?view=markup&pathrev=$rev", |
160 | | - $path ); |
| 165 | + $path . $from ); |
161 | 166 | } else { |
162 | 167 | $link = $safePath; |
163 | 168 | } |