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
Fix caller name in WatchedItemStore::updateNotificationTimestamp
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryLangLinks.php
diff --git
a/includes/api/ApiQueryLangLinks.php
b/includes/api/ApiQueryLangLinks.php
index
df33d02
..
f33a67f
100644
(file)
--- a/
includes/api/ApiQueryLangLinks.php
+++ b/
includes/api/ApiQueryLangLinks.php
@@
-1,9
+1,5
@@
<?php
/**
<?php
/**
- *
- *
- * Created on May 13, 2007
- *
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
@@
-24,6
+20,8
@@
* @file
*/
* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A query module to list all langlinks (links to corresponding foreign language pages).
*
/**
* A query module to list all langlinks (links to corresponding foreign language pages).
*
@@
-144,7
+142,6
@@
class ApiQueryLangLinks extends ApiQueryBase {
}
public function getAllowedParams() {
}
public function getAllowedParams() {
- global $wgContLang;
return [
'prop' => [
ApiBase::PARAM_ISMULTI => true,
return [
'prop' => [
ApiBase::PARAM_ISMULTI => true,
@@
-164,7
+161,7
@@
class ApiQueryLangLinks extends ApiQueryBase {
'descending'
]
],
'descending'
]
],
- 'inlanguagecode' =>
$wgContLang
->getCode(),
+ 'inlanguagecode' =>
MediaWikiServices::getInstance()->getContentLanguage()
->getCode(),
'limit' => [
ApiBase::PARAM_DFLT => 10,
ApiBase::PARAM_TYPE => 'limit',
'limit' => [
ApiBase::PARAM_DFLT => 10,
ApiBase::PARAM_TYPE => 'limit',