Index: trunk/extensions/CodeReview/ui/SpecialCode.php |
— | — | @@ -29,11 +29,14 @@ |
30 | 30 | } |
31 | 31 | |
32 | 32 | // Add subtitle for easy navigation |
33 | | - $repo = $view->getRepo(); |
34 | | - if ( $view instanceof CodeView && $repo ) { |
35 | | - $wgOut->setSubtitle( |
36 | | - wfMsgExt( 'codereview-subtitle', 'parse', CodeRepoListView::getNavItem( $repo ) ) |
37 | | - ); |
| 33 | + if ( $view instanceof CodeView ) { |
| 34 | + $repo = $view->getRepo(); |
| 35 | + |
| 36 | + if ( $repo ) { |
| 37 | + $wgOut->setSubtitle( |
| 38 | + wfMsgExt( 'codereview-subtitle', 'parse', CodeRepoListView::getNavItem( $repo ) ) |
| 39 | + ); |
| 40 | + } |
38 | 41 | } |
39 | 42 | } |
40 | 43 | |