Index: trunk/extensions/CodeReview/backend/Subversion.php |
— | — | @@ -7,6 +7,10 @@ |
8 | 8 | */ |
9 | 9 | protected $mRepoPath; |
10 | 10 | |
| 11 | + /** |
| 12 | + * @param $repo string |
| 13 | + * @return SubversionAdaptor |
| 14 | + */ |
11 | 15 | public static function newFromRepo( $repo ) { |
12 | 16 | global $wgSubversionProxy, $wgSubversionProxyTimeout; |
13 | 17 | if ( $wgSubversionProxy ) { |
— | — | @@ -19,7 +23,7 @@ |
20 | 24 | } |
21 | 25 | |
22 | 26 | /** |
23 | | - * @param $repo String Path to SVN Repo |
| 27 | + * @param $repo String Path to SVN Repo |
24 | 28 | */ |
25 | 29 | function __construct( $repoPath ) { |
26 | 30 | $this->mRepoPath = $repoPath; |
— | — | @@ -71,6 +75,7 @@ |
72 | 76 | svn_auth_set_parameter( SVN_AUTH_PARAM_DEFAULT_PASSWORD, $wgSubversionPassword ); |
73 | 77 | } |
74 | 78 | } |
| 79 | + |
75 | 80 | /** |
76 | 81 | * Just return true for now. svn_info() is too slow to be useful... |
77 | 82 | * |
Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | 'code-tags-no-tags' => 'No tags exist in this repository.', |
40 | 40 | 'code-authors-text' => 'Below is a list of repo authors in order of commit name. Local wiki accounts are shown in parentheses. Data may be cached.', |
41 | 41 | 'code-author-haslink' => 'This author is linked to the wiki user $1', |
42 | | - 'code-author-orphan' => 'This author has no link with a wiki account', |
| 42 | + 'code-author-orphan' => 'Wiki user $1 has no link with a wiki account', |
43 | 43 | 'code-author-dolink' => 'Link this author to a wiki user:', |
44 | 44 | 'code-author-alterlink' => 'Change the wiki user linked to this author:', |
45 | 45 | 'code-author-orunlink' => 'Or unlink this wiki user:', |
Index: trunk/extensions/CodeReview/ui/CodeRevisionAuthorLink.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | // Unlink an author to a wiki users |
85 | 85 | } elseif ( $wgRequest->getVal( 'unlink' ) ) { |
86 | 86 | if ( !$this->mUser ) { |
87 | | - $wgOut->addHTML( wfMsg( 'code-author-orphan' ) ); |
| 87 | + $wgOut->addHTML( wfMsg( 'code-author-orphan', $this->authorLink( $this->mAuthor ) ) ); |
88 | 88 | return; |
89 | 89 | } |
90 | 90 | $this->mRepo->unlinkUser( $this->mAuthor ); |
Index: trunk/extensions/CodeReview/ui/CodeRevisionAuthorView.php |
— | — | @@ -1,6 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | class CodeRevisionAuthorView extends CodeRevisionListView { |
| 5 | + |
5 | 6 | function __construct( $repo, $author ) { |
6 | 7 | parent::__construct( $repo ); |
7 | 8 | $this->mAuthor = $author; |
— | — | @@ -13,7 +14,7 @@ |
14 | 15 | |
15 | 16 | function linkStatus() { |
16 | 17 | if ( !$this->mUser ) { |
17 | | - return wfMsg( 'code-author-orphan' ); |
| 18 | + return wfMsg( 'code-author-orphan', $this->authorLink( $this->mAuthor ) ); |
18 | 19 | } |
19 | 20 | |
20 | 21 | return wfMsgHtml( 'code-author-haslink', |
— | — | @@ -33,11 +34,11 @@ |
34 | 35 | wfMsg( 'code-author-' . ( $this->mUser ? 'un':'' ) . 'link' ) ) . ')' ; |
35 | 36 | } |
36 | 37 | |
37 | | - $repoLink = $wgUser->getSkin()->link( SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ), |
| 38 | + $repoLink = $this->skin->link( SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ), |
38 | 39 | htmlspecialchars( $this->mRepo->getName() ) ); |
39 | 40 | $fields = array( |
40 | 41 | 'code-rev-repo' => $repoLink, |
41 | | - 'code-rev-author' => $this->authorLink( $this->mAuthor ), |
| 42 | + 'code-rev-author' => $this->mAuthor, |
42 | 43 | ); |
43 | 44 | |
44 | 45 | $wgOut->addHTML( $this->formatMetaData( $fields ) . $linkInfo ); |