Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | class SpecialStatistics extends SpecialPage { |
32 | 32 | |
33 | 33 | private $views, $edits, $good, $images, $total, $users, |
34 | | - $activeUsers, $admins, $numJobs = 0; |
| 34 | + $activeUsers, $admins = 0; |
35 | 35 | |
36 | 36 | public function __construct() { |
37 | 37 | parent::__construct( 'Statistics' ); |
— | — | @@ -50,7 +50,6 @@ |
51 | 51 | $this->users = SiteStats::users(); |
52 | 52 | $this->activeUsers = SiteStats::activeUsers(); |
53 | 53 | $this->admins = SiteStats::numberingroup('sysop'); |
54 | | - $this->numJobs = SiteStats::jobs(); |
55 | 54 | $this->hook = ''; |
56 | 55 | |
57 | 56 | # Staticic - views |
— | — | @@ -69,11 +68,6 @@ |
70 | 69 | $wgMemc->set( $key, '1', 24*3600 ); // don't update for 1 day |
71 | 70 | } |
72 | 71 | } |
73 | | - |
74 | | - # Do raw output |
75 | | - if( $wgRequest->getVal( 'action' ) == 'raw' ) { |
76 | | - $this->doRawOutput(); |
77 | | - } |
78 | 72 | |
79 | 73 | $text = Xml::openElement( 'table', array( 'class' => 'wikitable mw-statistics-table' ) ); |
80 | 74 | |
— | — | @@ -310,20 +304,4 @@ |
311 | 305 | |
312 | 306 | return $return; |
313 | 307 | } |
314 | | - |
315 | | - /** |
316 | | - * Do the action=raw output for this page. Legacy, but we support |
317 | | - * it for backwards compatibility |
318 | | - * http://lists.wikimedia.org/pipermail/wikitech-l/2008-August/039202.html |
319 | | - */ |
320 | | - private function doRawOutput() { |
321 | | - global $wgOut; |
322 | | - $wgOut->disable(); |
323 | | - header( 'Pragma: nocache' ); |
324 | | - echo "total=" . $this->total . ";good=" . $this->good . ";views=" . |
325 | | - $this->views . ";edits=" . $this->edits . ";users=" . $this->users . ";"; |
326 | | - echo "activeusers=" . $this->activeUsers . ";admins=" . $this->admins . |
327 | | - ";images=" . $this->images . ";jobs=" . $this->numJobs . "\n"; |
328 | | - return; |
329 | | - } |
330 | | -} |
\ No newline at end of file |
| 308 | +} |