From: Brad Jorsch Date: Mon, 27 Aug 2018 17:17:55 +0000 (-0400) Subject: API: Update examples to avoid MCR deprecation X-Git-Tag: 1.34.0-rc.0~4295^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin//%27%241/%27?a=commitdiff_plain;h=f915b868209d782eff40f5703e86b3ab004e637a;p=lhc%2Fweb%2Fwiklou.git API: Update examples to avoid MCR deprecation ApiQueryRevisions and ApiQueryDeletedRevisions each have one example fetching the content of the revision, which needs to be updated to add the rvslots/drvslots parameter. Bug: T202909 Change-Id: Ibc3cbd0fbf45361da31063a3e94afb6a22e300e0 --- diff --git a/includes/api/ApiQueryDeletedRevisions.php b/includes/api/ApiQueryDeletedRevisions.php index c3af71bff8..48d6f300c7 100644 --- a/includes/api/ApiQueryDeletedRevisions.php +++ b/includes/api/ApiQueryDeletedRevisions.php @@ -289,7 +289,7 @@ class ApiQueryDeletedRevisions extends ApiQueryRevisionsBase { protected function getExamplesMessages() { return [ 'action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&' . - 'drvprop=user|comment|content' + 'drvslots=*&drvprop=user|comment|content' => 'apihelp-query+deletedrevisions-example-titles', 'action=query&prop=deletedrevisions&revids=123456' => 'apihelp-query+deletedrevisions-example-revids', diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 5e7b864b54..8c26024812 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -486,7 +486,7 @@ class ApiQueryRevisions extends ApiQueryRevisionsBase { protected function getExamplesMessages() { return [ 'action=query&prop=revisions&titles=API|Main%20Page&' . - 'rvprop=timestamp|user|comment|content' + 'rvslots=*&rvprop=timestamp|user|comment|content' => 'apihelp-query+revisions-example-content', 'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' . 'rvprop=timestamp|user|comment'