Change statsOutput to parent, wikiStatsOutput is a subclass of statsOutput
authorSam Reed <reedy@users.mediawiki.org>
Fri, 6 Aug 2010 14:12:41 +0000 (14:12 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 6 Aug 2010 14:12:41 +0000 (14:12 +0000)
includes/api/ApiQueryCategoryMembers.php
maintenance/language/StatOutputs.php

index 1eb7a04..dbf7a9d 100644 (file)
@@ -209,7 +209,6 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase {
                                ApiBase::PARAM_TYPE => 'string',
                                ApiBase::PARAM_REQUIRED => true
                        ),
-
                        'prop' => array(
                                ApiBase::PARAM_DFLT => 'ids|title',
                                ApiBase::PARAM_ISMULTI => true,
index 839d009..91cd609 100644 (file)
@@ -70,7 +70,7 @@ class wikiStatsOutput extends statsOutput {
                $blue = '00';
                $color = $red . $green . $blue;
 
-               $percent = statsOutput::formatPercent( $subset, $total, $revert, $accuracy );
+               $percent = parent::formatPercent( $subset, $total, $revert, $accuracy );
                return 'bgcolor="#' . $color . '"|' . $percent;
        }
 }