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 "Implement OO.ui.isMobile"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryLinks.php
diff --git
a/includes/api/ApiQueryLinks.php
b/includes/api/ApiQueryLinks.php
index
6e5239f
..
4556e29
100644
(file)
--- a/
includes/api/ApiQueryLinks.php
+++ b/
includes/api/ApiQueryLinks.php
@@
-94,7
+94,7
@@
class ApiQueryLinks extends ApiQueryGeneratorBase {
foreach ( $params[$this->titlesParam] as $t ) {
$title = Title::newFromText( $t );
if ( !$title ) {
foreach ( $params[$this->titlesParam] as $t ) {
$title = Title::newFromText( $t );
if ( !$title ) {
- $this->
setWarning( "\"$t\" is not a valid title"
);
+ $this->
addWarning( [ 'apiwarn-invalidtitle', wfEscapeWikiText( $t ) ]
);
} else {
$lb->addObj( $title );
}
} else {
$lb->addObj( $title );
}
@@
-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,