Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -9,9 +9,7 @@ |
10 | 10 | */ |
11 | 11 | |
12 | 12 | /** |
13 | | - * Show the special page |
14 | | - * |
15 | | - * @param mixed $par (not used) |
| 13 | + * Some statistics about the wiki |
16 | 14 | */ |
17 | 15 | class SpecialStatistics extends SpecialPage { |
18 | 16 | |
— | — | @@ -25,7 +23,6 @@ |
26 | 24 | public function execute( $par ) { |
27 | 25 | global $wgOut, $wgRequest, $wgMessageCache, $wgMemc; |
28 | 26 | global $wgDisableCounters, $wgMiserMode; |
29 | | - $wgMessageCache->loadAllMessages(); |
30 | 27 | |
31 | 28 | $this->setHeaders(); |
32 | 29 | |
— | — | @@ -101,11 +98,11 @@ |
102 | 99 | |
103 | 100 | /** |
104 | 101 | * Format a row |
105 | | - * @param string $text description of the row |
106 | | - * @param float $number a number |
107 | | - * @param array $trExtraParams |
108 | | - * @param string $descMsg |
109 | | - * @param string $descMsgParam |
| 102 | + * @param $text String: description of the row |
| 103 | + * @param $number Float: a statistical number |
| 104 | + * @param $trExtraParams Array: params to table row, see Html::elememt |
| 105 | + * @param $descMsg String: message key |
| 106 | + * @param $descMsgParam Array: message params |
110 | 107 | * @return string table row in HTML format |
111 | 108 | */ |
112 | 109 | private function formatRow( $text, $number, $trExtraParams = array(), $descMsg = '', $descMsgParam = '' ) { |
— | — | @@ -118,10 +115,11 @@ |
119 | 116 | $descriptionText ); |
120 | 117 | } |
121 | 118 | } |
122 | | - return Xml::openElement( 'tr', $trExtraParams ) . |
123 | | - Xml::openElement( 'td' ) . $text . Xml::closeElement( 'td' ) . |
124 | | - Xml::openElement( 'td', array( 'class' => 'mw-statistics-numbers' ) ) . $number . Xml::closeElement( 'td' ) . |
125 | | - Xml::closeElement( 'tr' ); |
| 119 | + return |
| 120 | + Html::rawElement( 'tr', $trExtraParams, |
| 121 | + Html::rawElement( 'td', array(), $text ) . |
| 122 | + Html::rawElement( 'td', array( 'class' => 'mw-statistics-numbers' ), $number ) |
| 123 | + ); |
126 | 124 | } |
127 | 125 | |
128 | 126 | /** |