diff options
author | Brad Jorsch <bjorsch@wikimedia.org> | 2014-08-07 16:48:59 +0100 |
---|---|---|
committer | Brad Jorsch <bjorsch@wikimedia.org> | 2014-08-07 16:51:19 +0100 |
commit | f0a6435f3b7242d64996298e5b1cafd65e7bce94 (patch) | |
tree | 8bd1bbd15eee0061c867777fec146d32445ca940 /includes/api/ApiQueryExternalLinks.php | |
parent | af87cb4a3f528859bbe89df5db49f35fec07d9e5 (diff) | |
download | mediawikicore-f0a6435f3b7242d64996298e5b1cafd65e7bce94.tar.gz mediawikicore-f0a6435f3b7242d64996298e5b1cafd65e7bce94.zip |
API: Remove action=paraminfo 'props' and 'errors' result properties
The format for 'props' was never specified and the list for 'errors' is
impossible to keep updated when considering that many errors come from
MediaWiki backend code and extension hook functions. And since there
doesn't seem to be any real use case for either of these, let's just
kill both of them instead of wasting effort on trying to fix them.
Note that neither getResultProperties nor getPossibleErrors are called
from any extensions in gerrit, and none of the other deprecated methods
are called outside of the implementations of those two methods. Removing
the obsolete methods is left to the maintainers of the extensions, as
keeping them hurts nothing and is needed to maintain compatibility with
earlier versions of MediaWiki.
Change-Id: Ie11a401d60c834059fbf1b5625ca8ea093b3337c
Diffstat (limited to 'includes/api/ApiQueryExternalLinks.php')
-rw-r--r-- | includes/api/ApiQueryExternalLinks.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index e3a7be3da702..95666354a2dc 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -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 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' |