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 "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryLinks.php
diff --git
a/includes/api/ApiQueryLinks.php
b/includes/api/ApiQueryLinks.php
index
e9ae132
..
3639c06
100644
(file)
--- a/
includes/api/ApiQueryLinks.php
+++ b/
includes/api/ApiQueryLinks.php
@@
-34,7
+34,7
@@
class ApiQueryLinks extends ApiQueryGeneratorBase {
const LINKS = 'links';
const TEMPLATES = 'templates';
const LINKS = 'links';
const TEMPLATES = 'templates';
- private $table, $prefix, $helpUrl;
+ private $table, $prefix, $
titlesParam, $
helpUrl;
public function __construct( ApiQuery $query, $moduleName ) {
switch ( $moduleName ) {
public function __construct( ApiQuery $query, $moduleName ) {
switch ( $moduleName ) {
@@
-42,13
+42,13
@@
class ApiQueryLinks extends ApiQueryGeneratorBase {
$this->table = 'pagelinks';
$this->prefix = 'pl';
$this->titlesParam = 'titles';
$this->table = 'pagelinks';
$this->prefix = 'pl';
$this->titlesParam = 'titles';
- $this->helpUrl = 'https://www.mediawiki.org/wiki/API:Links';
+ $this->helpUrl = 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Links';
break;
case self::TEMPLATES:
$this->table = 'templatelinks';
$this->prefix = 'tl';
$this->titlesParam = 'templates';
break;
case self::TEMPLATES:
$this->table = 'templatelinks';
$this->prefix = 'tl';
$this->titlesParam = 'templates';
- $this->helpUrl = 'https://www.mediawiki.org/wiki/API:Templates';
+ $this->helpUrl = 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Templates';
break;
default:
ApiBase::dieDebug( __METHOD__, 'Unknown module name' );
break;
default:
ApiBase::dieDebug( __METHOD__, 'Unknown module name' );
@@
-182,7
+182,8
@@
class ApiQueryLinks extends ApiQueryGeneratorBase {
return [
'namespace' => [
ApiBase::PARAM_TYPE => 'namespace',
return [
'namespace' => [
ApiBase::PARAM_TYPE => 'namespace',
- ApiBase::PARAM_ISMULTI => true
+ ApiBase::PARAM_ISMULTI => true,
+ ApiBase::PARAM_EXTRA_NAMESPACES => [ NS_MEDIA, NS_SPECIAL ],
],
'limit' => [
ApiBase::PARAM_DFLT => 10,
],
'limit' => [
ApiBase::PARAM_DFLT => 10,