Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | 'code-prop-changes' => 'Status & tagging log', |
25 | 25 | 'codereview-desc' => '[[Special:Code|Code review tool]] with [[Special:RepoAdmin|Subversion support]]', |
26 | 26 | 'code-no-repo' => 'No repository configured!', |
27 | | - 'code-repo-not-found' => 'Repository <b>$1</b> does not exist!', |
| 27 | + 'code-repo-not-found' => "Repository '''$1''' does not exist!", |
28 | 28 | 'code-load-diff' => 'Loading diff…', |
29 | 29 | 'code-notes' => 'recent comments', |
30 | 30 | 'code-statuschanges' => 'status changes', |
— | — | @@ -81,6 +81,7 @@ |
82 | 82 | 'code-rev-diff-too-large' => 'The diff is too large to display.', |
83 | 83 | 'code-rev-purge-link' => 'purge', |
84 | 84 | 'code-rev-total' => 'Total number of results: $1', |
| 85 | + 'code-rev-not-found' => "Revision '''$1''' does not exist!", |
85 | 86 | 'code-status-new' => 'new', |
86 | 87 | 'code-status-fixme' => 'fixme', |
87 | 88 | 'code-status-reverted' => 'reverted', |
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | global $wgRequest; |
9 | 9 | parent::__construct(); |
10 | 10 | $this->mRepo = CodeRepository::newFromName( $repoName ); |
| 11 | + $this->mRevId = intval( ltrim( $rev, 'r' ) ); |
11 | 12 | $this->mRev = $this->mRepo ? |
12 | | - $this->mRepo->getRevision( intval( ltrim( $rev, 'r' ) ) ) : null; |
| 13 | + $this->mRepo->getRevision( $this->mRevId ) : null; |
13 | 14 | $this->mPreviewText = false; |
14 | 15 | # Search path for navigation links |
15 | 16 | $this->mPath = htmlspecialchars( trim( $wgRequest->getVal( 'path' ) ) ); |
— | — | @@ -37,6 +38,7 @@ |
38 | 39 | return; |
39 | 40 | } |
40 | 41 | if ( !$this->mRev ) { |
| 42 | + $wgOut->addWikiMsg( 'code-rev-not-found', $this->mRevId ); |
41 | 43 | $view = new CodeRevisionListView( $this->mRepo->getName() ); |
42 | 44 | $view->execute(); |
43 | 45 | return; |