diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /includes/api/ApiQueryTags.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'includes/api/ApiQueryTags.php')
-rw-r--r-- | includes/api/ApiQueryTags.php | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 732df9a4..31845648 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -38,9 +38,9 @@ class ApiQueryTags extends ApiQueryBase { private $limit; private $fld_displayname = false, $fld_description = false, - $fld_hitcount = false; + $fld_hitcount = false; - public function __construct( $query, $moduleName ) { + public function __construct( ApiQuery $query, $moduleName ) { parent::__construct( $query, $moduleName, 'tg' ); } @@ -97,6 +97,7 @@ class ApiQueryTags extends ApiQueryBase { if ( ++$count > $this->limit ) { $this->setContinueEnumParameter( 'continue', $tagName ); + return false; } @@ -121,6 +122,7 @@ class ApiQueryTags extends ApiQueryBase { $fit = $this->result->addValue( array( 'query', $this->getModuleName() ), null, $tag ); if ( !$fit ) { $this->setContinueEnumParameter( 'continue', $tagName ); + return false; } @@ -168,25 +170,8 @@ class ApiQueryTags extends ApiQueryBase { ); } - public function getResultProperties() { - return array( - '' => array( - 'name' => 'string' - ), - 'displayname' => array( - 'displayname' => 'string' - ), - 'description' => array( - 'description' => 'string' - ), - 'hitcount' => array( - 'hitcount' => 'integer' - ) - ); - } - public function getDescription() { - return 'List change tags'; + return 'List change tags.'; } public function getExamples() { |