Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -14,8 +14,9 @@ |
15 | 15 | * @param mixed $par (not used) |
16 | 16 | */ |
17 | 17 | function wfSpecialStatistics( $par = '' ) { |
18 | | - global $wgOut, $wgLang, $wgRequest, $wgUser, $wgContLang; |
| 18 | + global $wgOut, $wgLang, $wgRequest, $wgUser, $wgContLang, $wgMessageCache; |
19 | 19 | global $wgDisableCounters, $wgMiserMode, $wgImplicitGroups, $wgGroupPermissions; |
| 20 | + $wgMessageCache->loadAllMessages(); |
20 | 21 | $sk = $wgUser->getSkin(); |
21 | 22 | $dbr = wfGetDB( DB_SLAVE ); |
22 | 23 | |
— | — | @@ -34,9 +35,11 @@ |
35 | 36 | if( !$wgDisableCounters ) { |
36 | 37 | $viewsStats = Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-views' ) ) . |
37 | 38 | formatRow( wfMsgExt( 'statistics-views-total', array( 'parseinline' ) ), |
38 | | - $wgLang->formatNum( $views ) ) . |
| 39 | + $wgLang->formatNum( $views ), |
| 40 | + ' class="mw-statistics-views-total"' ) . |
39 | 41 | formatRow( wfMsgExt( 'statistics-views-peredit', array( 'parseinline' ) ), |
40 | | - $wgLang->formatNum( sprintf( '%.2f', $edits ? $views / $edits : 0 ) ) ); |
| 42 | + $wgLang->formatNum( sprintf( '%.2f', $edits ? $views / $edits : 0 ) ), |
| 43 | + ' class="mw-statistics-views-peredit"' ); |
41 | 44 | } |
42 | 45 | # Set active user count |
43 | 46 | if( !$wgMiserMode ) { |
— | — | @@ -57,27 +60,37 @@ |
58 | 61 | # Statistic - pages |
59 | 62 | Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-pages' ) ) . |
60 | 63 | formatRow( wfMsgExt( 'statistics-articles', array( 'parseinline' ) ), |
61 | | - $wgLang->formatNum( $good ) ) . |
| 64 | + $wgLang->formatNum( $good ), |
| 65 | + ' class="mw-statistics-articles"' ) . |
62 | 66 | formatRow( wfMsgExt( 'statistics-pages', array( 'parseinline' ) ), |
63 | | - $wgLang->formatNum( $total ), NULL, 'statistics-pages-tooltip' ) . |
| 67 | + $wgLang->formatNum( $total ), |
| 68 | + ' class="mw-statistics-pages"', |
| 69 | + 'statistics-pages-tooltip' ) . |
64 | 70 | formatRow( wfMsgExt( 'statistics-files', array( 'parseinline' ) ), |
65 | | - $wgLang->formatNum( $images ) ) . |
| 71 | + $wgLang->formatNum( $images ), |
| 72 | + ' class="mw-statistics-files"' ) . |
66 | 73 | |
67 | 74 | # Statistic - edits |
68 | 75 | Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-edits' ) ) . |
69 | 76 | formatRow( wfMsgExt( 'statistics-edits', array( 'parseinline' ) ), |
70 | | - $wgLang->formatNum( $edits ) ) . |
| 77 | + $wgLang->formatNum( $edits ), |
| 78 | + ' class="mw-statistics-edits"' ) . |
71 | 79 | formatRow( wfMsgExt( 'statistics-edits-average', array( 'parseinline' ) ), |
72 | | - $wgLang->formatNum( sprintf( '%.2f', $total ? $edits / $total : 0 ) ) ) . |
| 80 | + $wgLang->formatNum( sprintf( '%.2f', $total ? $edits / $total : 0 ) ), |
| 81 | + ' class="mw-statistics-edits-average"' ) . |
73 | 82 | formatRow( wfMsgExt( 'statistics-jobqueue', array( 'parseinline' ) ), |
74 | | - $wgLang->formatNum( $numJobs ) ) . |
| 83 | + $wgLang->formatNum( $numJobs ), |
| 84 | + ' class="mw-statistics-jobqueue"' ) . |
75 | 85 | |
76 | 86 | # Statistic - users |
77 | 87 | Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-users' ) ) . |
78 | 88 | formatRow( wfMsgExt( 'statistics-users', array( 'parseinline' ) ), |
79 | | - $wgLang->formatNum( $users ) ) . |
| 89 | + $wgLang->formatNum( $users ), |
| 90 | + ' class="mw-statistics-users"' ) . |
80 | 91 | formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ), |
81 | | - $wgLang->formatNum( $activeUsers ), NULL, 'statistics-users-active-tooltip' ); |
| 92 | + $wgLang->formatNum( $activeUsers ), |
| 93 | + ' class="mw-statistics-users-active"', |
| 94 | + 'statistics-users-active-tooltip' ); |
82 | 95 | |
83 | 96 | # Statistic - usergroups |
84 | 97 | foreach( $wgGroupPermissions as $group => $permissions ) { |