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 "Don't cast SpecialPageFactory::$list to an object"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryExternalLinks.php
diff --git
a/includes/api/ApiQueryExternalLinks.php
b/includes/api/ApiQueryExternalLinks.php
index
f7a0958
..
9566635
100644
(file)
--- a/
includes/api/ApiQueryExternalLinks.php
+++ b/
includes/api/ApiQueryExternalLinks.php
@@
-31,7
+31,7
@@
*/
class ApiQueryExternalLinks extends ApiQueryBase {
*/
class ApiQueryExternalLinks extends ApiQueryBase {
- public function __construct( $query, $moduleName ) {
+ public function __construct(
ApiQuery
$query, $moduleName ) {
parent::__construct( $query, $moduleName, 'el' );
}
parent::__construct( $query, $moduleName, 'el' );
}
@@
-141,24
+141,10
@@
class ApiQueryExternalLinks extends ApiQueryBase {
);
}
);
}
- public function getResultProperties() {
- return array(
- '' => array(
- '*' => 'string'
- )
- );
- }
-
public function getDescription() {
return 'Returns all external URLs (not interwikis) from the given page(s).';
}
public function getDescription() {
return 'Returns all external URLs (not interwikis) from the given page(s).';
}
- public function getPossibleErrors() {
- return array_merge( parent::getPossibleErrors(), array(
- array( 'code' => 'bad_query', 'info' => 'Invalid query' ),
- ) );
- }
-
public function getExamples() {
return array(
'api.php?action=query&prop=extlinks&titles=Main%20Page'
public function getExamples() {
return array(
'api.php?action=query&prop=extlinks&titles=Main%20Page'