Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -405,7 +405,11 @@ |
406 | 406 | return false; |
407 | 407 | } else { |
408 | 408 | $viewvcStart = 'http://svn.wikimedia.org/viewvc/mediawiki/'; |
409 | | - $viewvcEnd = '/?pathrev='; |
| 409 | + if (strstr( $content[4], 'trunk' )) |
| 410 | + $viewvcEnd = '/?pathrev='; |
| 411 | + else |
| 412 | + // Avoids 404 error using pathrev when it does not found |
| 413 | + $viewvcEnd = '/?revision='; |
410 | 414 | $viewvc = $viewvcStart . $endPath . $viewvcEnd; |
411 | 415 | return $viewvc; |
412 | 416 | } |