Index: trunk/phase3/includes/Pager.php |
— | — | @@ -937,7 +937,9 @@ |
938 | 938 | function getNavigationBar() { |
939 | 939 | global $wgStylePath, $wgContLang; |
940 | 940 | |
941 | | - if ( !$this->isNavigationBarShown() ) return ''; |
| 941 | + if ( !$this->isNavigationBarShown() ) { |
| 942 | + return ''; |
| 943 | + } |
942 | 944 | |
943 | 945 | $path = "$wgStylePath/common/images"; |
944 | 946 | $labels = array( |
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -42,9 +42,11 @@ |
43 | 43 | $this->batchForm = $wgUser->isAllowed( 'codereview-set-status' ) || |
44 | 44 | $wgUser->isAllowed( 'codereview-add-tag' ); |
45 | 45 | |
| 46 | + $navBar = $pager->getNavigationBar(); |
| 47 | + |
46 | 48 | $wgOut->addHTML( |
47 | 49 | '<table><tr><td>' . |
48 | | - $pager->getNavigationBar() . |
| 50 | + $navBar . |
49 | 51 | $pager->getLimitForm() . |
50 | 52 | '</td><td style="padding-left: 2em;">' . |
51 | 53 | ' <strong>' . wfMsgHtml( 'code-rev-total', $revCount ) . '</strong>' . |
— | — | @@ -53,7 +55,7 @@ |
54 | 56 | array( 'action' => $pager->getTitle()->getLocalURL(), 'method' => 'post' ) |
55 | 57 | ) . |
56 | 58 | $pager->getBody() . |
57 | | - $pager->getNavigationBar() . |
| 59 | + $navBar . |
58 | 60 | ( $this->batchForm ? $this->buildBatchInterface( $pager ) : "" ) . |
59 | 61 | Xml::closeElement( 'form' ) |
60 | 62 | ); |