From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/api/ApiQueryExternalLinks.php | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) (limited to 'includes/api/ApiQueryExternalLinks.php') diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index 583ef697..95666354 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -31,7 +31,7 @@ */ class ApiQueryExternalLinks extends ApiQueryBase { - public function __construct( $query, $moduleName ) { + public function __construct( ApiQuery $query, $moduleName ) { parent::__construct( $query, $moduleName, 'el' ); } @@ -127,6 +127,7 @@ class ApiQueryExternalLinks extends ApiQueryBase { public function getParamDescription() { $p = $this->getModulePrefix(); + return array( 'limit' => 'How many links to return', 'offset' => 'When more results are available, use this to continue', @@ -134,32 +135,20 @@ class ApiQueryExternalLinks extends ApiQueryBase { "Protocol of the URL. If empty and {$p}query set, the protocol is http.", "Leave both this and {$p}query empty to list all external links" ), - 'query' => 'Search string without protocol. Useful for checking whether a certain page contains a certain external url', + 'query' => 'Search string without protocol. Useful for checking ' . + 'whether a certain page contains a certain external url', 'expandurl' => 'Expand protocol-relative URLs with the canonical protocol', ); } - public function getResultProperties() { - return array( - '' => array( - '*' => 'string' - ) - ); - } - 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' ), - ) ); + return 'Returns all external URLs (not interwikis) from the given page(s).'; } public function getExamples() { return array( - 'api.php?action=query&prop=extlinks&titles=Main%20Page' => 'Get a list of external links on the [[Main Page]]', + 'api.php?action=query&prop=extlinks&titles=Main%20Page' + => 'Get a list of external links on the [[Main Page]]', ); } -- cgit v1.2.2