X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiParse.php;h=a2761173872b36a125c21e925b8edd4babbbb7a5;hb=26247006e9210ae327ba5a99234e040cd8a50d8d;hp=fcba5b5f74d32c597336dbb10f44239ebd90d0fe;hpb=2e040b99eda6c99cf472b3896f62d2f21315e808;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index fcba5b5f74..a276117387 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -574,9 +574,9 @@ class ApiParse extends ApiBase { 'and will be removed in MediaWiki 1.24. Use "prop=langlinks" ' . 'to generate your own HTML.' ); - global $wgContLang, $wgHideInterlanguageLinks; + global $wgContLang; - if ( $wgHideInterlanguageLinks || count( $languages ) == 0 ) { + if ( $this->getConfig()->get( 'HideInterlanguageLinks' ) || count( $languages ) == 0 ) { return ''; }