Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | } |
18 | 18 | |
19 | 19 | function execute() { |
20 | | - global $wgOut, $wgUser, $wgRequest; |
| 20 | + global $wgOut, $wgUser, $wgRequest, $wgLang; |
21 | 21 | if ( !$this->mRepo ) { |
22 | 22 | $view = new CodeRepoListView(); |
23 | 23 | $view->execute(); |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | $wgOut->addHTML( |
51 | 51 | $navBar . |
52 | 52 | '<table><tr><td>' . $limitForm . '</td>' . |
53 | | - '<td> <strong>' . wfMsgHtml( 'code-rev-total', $revCount ) . '</strong></td>' . |
| 53 | + '<td> <strong>' . wfMsgHtml( 'code-rev-total', $wgLang->formatNum( $revCount ) ) . '</strong></td>' . |
54 | 54 | '</tr></table>' . |
55 | 55 | Xml::openElement( 'form', |
56 | 56 | array( 'action' => $pager->getTitle()->getLocalURL(), 'method' => 'post' ) |
— | — | @@ -203,7 +203,7 @@ |
204 | 204 | $whereCond = array_merge( $whereCond, $this->getSpecializedWhereClause( $dbr ) ); |
205 | 205 | $result = $dbr->selectRow( $tables, $selectFields, $whereCond ); |
206 | 206 | if ( $result ) { |
207 | | - return $result->rev_count; |
| 207 | + return intval( $result->rev_count ); |
208 | 208 | } else { |
209 | 209 | return 0; |
210 | 210 | } |