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 "Add test for bracketed external links with invalid template-generated target"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryIWLinks.php
diff --git
a/includes/api/ApiQueryIWLinks.php
b/includes/api/ApiQueryIWLinks.php
index
f39835a
..
30c7f5a
100644
(file)
--- a/
includes/api/ApiQueryIWLinks.php
+++ b/
includes/api/ApiQueryIWLinks.php
@@
-5,7
+5,7
@@
* Created on May 14, 2010
*
* Copyright © 2010 Sam Reed
* Created on May 14, 2010
*
* Copyright © 2010 Sam Reed
- * Copyright © 2006 Yuri Astrakhan
<Firstname><Lastname>@gmail.com
+ * Copyright © 2006 Yuri Astrakhan
"<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-66,7
+66,7
@@
class ApiQueryIWLinks extends ApiQueryBase {
$db = $this->getDB();
$iwlfrom = intval( $cont[0] );
$iwlprefix = $db->addQuotes( $cont[1] );
$db = $this->getDB();
$iwlfrom = intval( $cont[0] );
$iwlprefix = $db->addQuotes( $cont[1] );
- $iwltitle = $db->addQuotes( $
this->titleToKey( $cont[2] )
);
+ $iwltitle = $db->addQuotes( $
cont[2]
);
$this->addWhere(
"iwl_from $op $iwlfrom OR " .
"(iwl_from = $iwlfrom AND " .
$this->addWhere(
"iwl_from $op $iwlfrom OR " .
"(iwl_from = $iwlfrom AND " .
@@
-167,6
+167,19
@@
class ApiQueryIWLinks extends ApiQueryBase {
);
}
);
}
+ public function getResultProperties() {
+ return array(
+ '' => array(
+ 'prefix' => 'string',
+ 'url' => array(
+ ApiBase::PROP_TYPE => 'string',
+ ApiBase::PROP_NULLABLE => true
+ ),
+ '*' => 'string'
+ )
+ );
+ }
+
public function getDescription() {
return 'Returns all interwiki links from the given page(s)';
}
public function getDescription() {
return 'Returns all interwiki links from the given page(s)';
}