Index: trunk/extensions/Editcount/SpecialEditcount.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | $wgExtensionFunctions[] = 'wfSpecialEditcount'; |
18 | 18 | $wgExtensionCredits['specialpage'][] = array( |
19 | 19 | 'name' => 'Editcount', |
20 | | - 'author' => 'Ævar Arnfjörð Bjarmason', |
| 20 | + 'author' => 'Ævar Arnfjörð Bjarmason' |
21 | 21 | ); |
22 | 22 | |
23 | 23 | function wfSpecialEditcount() { |
— | — | @@ -63,12 +63,10 @@ |
64 | 64 | |
65 | 65 | if ( $this->including() ) { |
66 | 66 | if ( $namespace === null ) { |
67 | | - if ($uid != 0) { |
68 | | - $total = $this->getTotal( $this->editsByNs( $uid ) ); |
69 | | - $out = $wgContLang->formatNum( $total ); |
70 | | - } else { |
| 67 | + if ($uid != 0) |
| 68 | + $out = $wgContLang->formatNum( User::edits( $uid ) ); |
| 69 | + else |
71 | 70 | $out = ""; |
72 | | - } |
73 | 71 | } else { |
74 | 72 | $out = $wgContLang->formatNum( $this->editsInNs( $uid, $namespace ) ); |
75 | 73 | } |
— | — | @@ -155,7 +153,7 @@ |
156 | 154 | * @return string |
157 | 155 | */ |
158 | 156 | function editsInNs( $uid, $ns ) { |
159 | | - $fname = 'Editcount::editsInNn'; |
| 157 | + $fname = 'Editcount::editsInNs'; |
160 | 158 | $nscount = array(); |
161 | 159 | |
162 | 160 | $dbr =& wfGetDB( DB_SLAVE ); |
— | — | @@ -228,9 +226,7 @@ |
229 | 227 | } |
230 | 228 | $out .=" |
231 | 229 | </table> |
232 | | - </form> |
233 | | - "; |
234 | | - |
| 230 | + </form>"; |
235 | 231 | $wgOut->addHTML( $out ); |
236 | 232 | } |
237 | 233 | |