Index: trunk/extensions/CodeReview/ui/CodeTagListView.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | } else { |
19 | 19 | # Show a cloud made of tags |
20 | 20 | $tc = new WordCloud( $list, array( $this, 'linkCallback' ) ); |
21 | | - $wgOut->addHTML( $tc->showCloud() ); |
| 21 | + $wgOut->addHTML( $tc->getCloudHtml() ); |
22 | 22 | } |
23 | 23 | } |
24 | 24 | |
Index: trunk/extensions/CodeReview/ui/WordCloud.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | * |
86 | 86 | * @return String |
87 | 87 | */ |
88 | | - public function showCloud() { |
| 88 | + public function getCloudHtml() { |
89 | 89 | if( 0 === count( $this->wordsArray ) ) { |
90 | 90 | return; |
91 | 91 | } |
Index: trunk/extensions/CodeReview/ui/SpecialCode.php |
— | — | @@ -29,7 +29,8 @@ |
30 | 30 | } |
31 | 31 | |
32 | 32 | // Add subtitle for easy navigation |
33 | | - if ( $view instanceof CodeView && ( $repo = $view->getRepo() ) ) { |
| 33 | + $repo = $view->getRepo(); |
| 34 | + if ( $view instanceof CodeView && $repo ) { |
34 | 35 | $wgOut->setSubtitle( |
35 | 36 | wfMsgExt( 'codereview-subtitle', 'parse', CodeRepoListView::getNavItem( $repo ) ) |
36 | 37 | ); |