From: aude Date: Mon, 14 Jan 2013 23:51:33 +0000 (+0000) Subject: (bug 43996) Add support for RC_EXTERNAL type in api X-Git-Tag: 1.31.0-rc.0~21036^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=dbb1f76201f137a3e9ce0219e23e22002d748ff0;p=lhc%2Fweb%2Fwiklou.git (bug 43996) Add support for RC_EXTERNAL type in api - this is for recentchanges - can be used to filter changes injected from external sources, such as wikidata and other sources that use this type Change-Id: I8bd19a8a80b0422ab01d21da1702fc090ffa27d2 --- diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 84c2332347..dae03a9a85 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -341,6 +341,9 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { case RC_LOG: $vals['type'] = 'log'; break; + case RC_EXTERNAL: + $vals['type'] = 'external'; + break; case RC_MOVE_OVER_REDIRECT: $vals['type'] = 'move over redirect'; break; @@ -477,6 +480,8 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { return RC_NEW; case 'log': return RC_LOG; + case 'external': + return RC_EXTERNAL; } } @@ -573,6 +578,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array( 'edit', + 'external', 'new', 'log' )