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/ApiQueryRandom.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/ApiQueryRandom.php')
-rw-r--r-- | includes/api/ApiQueryRandom.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index 07f8a0e405e0..530557e6c414 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -173,16 +173,6 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { ); } - public function getResultProperties() { - return array( - '' => array( - 'id' => 'integer', - 'ns' => 'namespace', - 'title' => 'string' - ) - ); - } - public function getDescription() { return array( 'Get a set of random pages.', |