dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't try to auto-create users when MW_NO_SESSION is defined"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryTags.php
diff --git
a/includes/api/ApiQueryTags.php
b/includes/api/ApiQueryTags.php
index
0e3307b
..
284bb82
100644
(file)
--- 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] );
$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 ) {
}
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 );
}
$fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $tag );
@@
-135,7
+133,7
@@
class ApiQueryTags extends ApiQueryBase {
}
}
}
}
- $result->
setIndexedTagName_internal
( array( 'query', $this->getModuleName() ), 'tag' );
+ $result->
addIndexedTagName
( array( 'query', $this->getModuleName() ), 'tag' );
}
public function getCacheMode( $params ) {
}
public function getCacheMode( $params ) {
@@
-165,7
+163,8
@@
class ApiQueryTags extends ApiQueryBase {
'source',
'active',
),
'source',
'active',
),
- ApiBase::PARAM_ISMULTI => true
+ ApiBase::PARAM_ISMULTI => true,
+ ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
)
);
}
)
);
}