X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryTags.php;h=284bb82129b48cff5532cae492cda01c05c95c69;hb=46fdbb4c0ee144300e0cf277fde286136aea674d;hp=aa9121667960d6f166f11a20879fe19c03e6d9e6;hpb=78bd923ab9e11163799784519465e1bc29d70076;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index aa91216679..284bb82129 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -108,8 +108,8 @@ class ApiQueryTags extends ApiQueryBase { $isExtension = isset( $extensionDefinedTags[$tagName] ); $isExplicit = isset( $explicitlyDefinedTags[$tagName] ); - if ( $fld_defined && ( $isExtension || $isExplicit ) ) { - $tag['defined'] = ''; + if ( $fld_defined ) { + $tag['defined'] = $isExtension || $isExplicit; } if ( $fld_source ) { @@ -122,10 +122,8 @@ class ApiQueryTags extends ApiQueryBase { } } - if ( $fld_active && - ( $isExplicit || isset( $extensionActivatedTags[$tagName] ) ) - ) { - $tag['active'] = ''; + if ( $fld_active ) { + $tag['active'] = $isExplicit || isset( $extensionActivatedTags[$tagName] ); } $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $tag ); @@ -165,7 +163,8 @@ class ApiQueryTags extends ApiQueryBase { 'source', 'active', ), - ApiBase::PARAM_ISMULTI => true + ApiBase::PARAM_ISMULTI => true, + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ) ); }