http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76792
Revision: 76792 Author: reedy Date: 2010-11-16 14:06:21 +0000 (Tue, 16 Nov 2010) Log Message: ----------- Variablise $navigationBar Add a couple of braces Modified Paths: -------------- trunk/extensions/CodeReview/ui/CodeRevisionListView.php trunk/phase3/includes/Pager.php Modified: trunk/extensions/CodeReview/ui/CodeRevisionListView.php =================================================================== --- trunk/extensions/CodeReview/ui/CodeRevisionListView.php 2010-11-16 13:44:51 UTC (rev 76791) +++ trunk/extensions/CodeReview/ui/CodeRevisionListView.php 2010-11-16 14:06:21 UTC (rev 76792) @@ -42,9 +42,11 @@ $this->batchForm = $wgUser->isAllowed( 'codereview-set-status' ) || $wgUser->isAllowed( 'codereview-add-tag' ); + $navBar = $pager->getNavigationBar(); + $wgOut->addHTML( '<table><tr><td>' . - $pager->getNavigationBar() . + $navBar . $pager->getLimitForm() . '</td><td style="padding-left: 2em;">' . ' <strong>' . wfMsgHtml( 'code-rev-total', $revCount ) . '</strong>' . @@ -53,7 +55,7 @@ array( 'action' => $pager->getTitle()->getLocalURL(), 'method' => 'post' ) ) . $pager->getBody() . - $pager->getNavigationBar() . + $navBar . ( $this->batchForm ? $this->buildBatchInterface( $pager ) : "" ) . Xml::closeElement( 'form' ) ); Modified: trunk/phase3/includes/Pager.php =================================================================== --- trunk/phase3/includes/Pager.php 2010-11-16 13:44:51 UTC (rev 76791) +++ trunk/phase3/includes/Pager.php 2010-11-16 14:06:21 UTC (rev 76792) @@ -937,7 +937,9 @@ function getNavigationBar() { global $wgStylePath, $wgContLang; - if ( !$this->isNavigationBarShown() ) return ''; + if ( !$this->isNavigationBarShown() ) { + return ''; + } $path = "$wgStylePath/common/images"; $labels = array( _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs