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
Use $lang->hasVariants() instead of count( $lang->getVariants() ) > 1
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiPageSet.php
diff --git
a/includes/api/ApiPageSet.php
b/includes/api/ApiPageSet.php
index
a32b288
..
ea2a85f
100644
(file)
--- a/
includes/api/ApiPageSet.php
+++ b/
includes/api/ApiPageSet.php
@@
-1200,7
+1200,7
@@
class ApiPageSet extends ApiBase {
// Variants checking
global $wgContLang;
if ( $this->mConvertTitles &&
-
count( $wgContLang->getVariants() ) > 1
&&
+
$wgContLang->hasVariants()
&&
!$titleObj->exists()
) {
// Language::findVariantLink will modify titleText and titleObj into