Index: trunk/extensions/CodeReview/ui/CodeRepoListView.php |
— | — | @@ -37,29 +37,31 @@ |
38 | 38 | public static function getNavItem( $repo ) { |
39 | 39 | global $wgLang, $wgUser; |
40 | 40 | $name = $repo->getName(); |
41 | | - $links[] = "[[Special:Code/$name/comments|" . wfMsgHtml( 'code-notes' ) . "]]"; |
42 | | - $links[] = "[[Special:Code/$name/statuschanges|" . wfMsgHtml( 'code-statuschanges' ) . "]]"; |
| 41 | + |
| 42 | + $code = SpecialPage::getTitleFor( 'Code', $name ); |
| 43 | + $links[] = "[[$code/comments|" . wfMsgHtml( 'code-notes' ) . "]]"; |
| 44 | + $links[] = "[[$code/statuschanges|" . wfMsgHtml( 'code-statuschanges' ) . "]]"; |
43 | 45 | if ( $wgUser->getId() ) { |
44 | 46 | $author = $repo->wikiUserAuthor( $wgUser->getName() ); |
45 | 47 | if ( $author !== false ) { |
46 | | - $links[] = "[[Special:Code/$name/author/$author|" . wfMsgHtml( 'code-mycommits' ) . "]]"; |
| 48 | + $links[] = "[[$code/author/$author|" . wfMsgHtml( 'code-mycommits' ) . "]]"; |
47 | 49 | } |
48 | 50 | } |
49 | 51 | |
50 | 52 | if ( $wgUser->isAllowed( 'codereview-post-comment' ) ) { |
51 | 53 | $userName = $wgUser->getName(); |
52 | | - $links[] = "[[Special:Code/$name/comments/author/$userName|" . wfMsgHtml( 'code-mycomments' ) . "]]"; |
| 54 | + $links[] = "[[$code/comments/author/$userName|" . wfMsgHtml( 'code-mycomments' ) . "]]"; |
53 | 55 | } |
54 | 56 | |
55 | | - $links[] = "[[Special:Code/$name/tag|" . wfMsgHtml( 'code-tags' ) . "]]"; |
56 | | - $links[] = "[[Special:Code/$name/author|" . wfMsgHtml( 'code-authors' ) . "]]"; |
57 | | - $links[] = "[[Special:Code/$name/status|" . wfMsgHtml( 'code-status' ) . "]]"; |
58 | | - $links[] = "[[Special:Code/$name/releasenotes|" . wfMsgHtml( 'code-releasenotes' ) . "]]"; |
59 | | - $links[] = "[[Special:Code/$name/stats|" . wfMsgHtml( 'code-stats' ) . "]]"; |
| 57 | + $links[] = "[[$code/tag|" . wfMsgHtml( 'code-tags' ) . "]]"; |
| 58 | + $links[] = "[[$code/author|" . wfMsgHtml( 'code-authors' ) . "]]"; |
| 59 | + $links[] = "[[$code/status|" . wfMsgHtml( 'code-status' ) . "]]"; |
| 60 | + $links[] = "[[$code/releasenotes|" . wfMsgHtml( 'code-releasenotes' ) . "]]"; |
| 61 | + $links[] = "[[$code/stats|" . wfMsgHtml( 'code-stats' ) . "]]"; |
60 | 62 | if( $wgUser->isAllowed( 'repoadmin' ) ) { |
61 | 63 | $links[] = "[[Special:RepoAdmin/$name|" . wfMsgHtml( 'repoadmin-nav' ) . "]]"; |
62 | 64 | } |
63 | | - $text = "'''[[Special:Code/$name|$name]]''' " . wfMsg( 'parentheses', $wgLang->pipeList( $links ) ); |
| 65 | + $text = "'''[[$code|$name]]''' " . wfMsg( 'parentheses', $wgLang->pipeList( $links ) ); |
64 | 66 | return $text; |
65 | 67 | } |
66 | 68 | } |