From: Brad Jorsch Date: Tue, 6 Sep 2016 20:32:57 +0000 (-0400) Subject: API: Fix query+authmanagerinfo example message names X-Git-Tag: 1.31.0-rc.0~5728^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=40e1070c32334b02b77f713820953ab105da115d;p=lhc%2Fweb%2Fwiklou.git API: Fix query+authmanagerinfo example message names When code was copy-pasted to create the module, apparently the messages didn't get renamed correctly. Change-Id: I1bab2ed5a2b014602b6c3dc1e53a4ce53f78fa6f --- diff --git a/includes/api/ApiQueryAuthManagerInfo.php b/includes/api/ApiQueryAuthManagerInfo.php index 1d250e97d1..661ec5ab64 100644 --- a/includes/api/ApiQueryAuthManagerInfo.php +++ b/includes/api/ApiQueryAuthManagerInfo.php @@ -117,12 +117,12 @@ class ApiQueryAuthManagerInfo extends ApiQueryBase { protected function getExamplesMessages() { return [ 'action=query&meta=authmanagerinfo&amirequestsfor=' . urlencode( AuthManager::ACTION_LOGIN ) - => 'apihelp-query+filerepoinfo-example-login', + => 'apihelp-query+authmanagerinfo-example-login', 'action=query&meta=authmanagerinfo&amirequestsfor=' . urlencode( AuthManager::ACTION_LOGIN ) . '&amimergerequestfields=1' - => 'apihelp-query+filerepoinfo-example-login-merged', + => 'apihelp-query+authmanagerinfo-example-login-merged', 'action=query&meta=authmanagerinfo&amisecuritysensitiveoperation=foo' - => 'apihelp-query+filerepoinfo-example-securitysensitiveoperation', + => 'apihelp-query+authmanagerinfo-example-securitysensitiveoperation', ]; } diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 974e0aa128..40388f933f 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -591,9 +591,9 @@ "apihelp-query+authmanagerinfo-description": "Retrieve information about the current authentication status.", "apihelp-query+authmanagerinfo-param-securitysensitiveoperation": "Test whether the user's current authentication status is sufficient for the specified security-sensitive operation.", "apihelp-query+authmanagerinfo-param-requestsfor": "Fetch information about the authentication requests needed for the specified authentication action.", - "apihelp-query+filerepoinfo-example-login": "Fetch the requests that may be used when beginning a login.", - "apihelp-query+filerepoinfo-example-login-merged": "Fetch the requests that may be used when beginning a login, with form fields merged.", - "apihelp-query+filerepoinfo-example-securitysensitiveoperation": "Test whether authentication is sufficient for action foo.", + "apihelp-query+authmanagerinfo-example-login": "Fetch the requests that may be used when beginning a login.", + "apihelp-query+authmanagerinfo-example-login-merged": "Fetch the requests that may be used when beginning a login, with form fields merged.", + "apihelp-query+authmanagerinfo-example-securitysensitiveoperation": "Test whether authentication is sufficient for action foo.", "apihelp-query+backlinks-description": "Find all pages that link to the given page.", "apihelp-query+backlinks-param-title": "Title to search. Cannot be used together with $1pageid.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index abbc69b03d..caa89b5d5e 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -555,9 +555,9 @@ "apihelp-query+authmanagerinfo-description": "{{doc-apihelp-description|query+authmanagerinfo}}", "apihelp-query+authmanagerinfo-param-securitysensitiveoperation": "{{doc-apihelp-param|query+authmanagerinfo|securitysensitiveoperation}}", "apihelp-query+authmanagerinfo-param-requestsfor": "{{doc-apihelp-param|query+authmanagerinfo|requestsfor}}", - "apihelp-query+filerepoinfo-example-login": "{{doc-apihelp-example|query+filerepoinfo}}", - "apihelp-query+filerepoinfo-example-login-merged": "{{doc-apihelp-example|query+filerepoinfo}}", - "apihelp-query+filerepoinfo-example-securitysensitiveoperation": "{{doc-apihelp-example|query+filerepoinfo}}", + "apihelp-query+authmanagerinfo-example-login": "{{doc-apihelp-example|query+authmanagerinfo}}", + "apihelp-query+authmanagerinfo-example-login-merged": "{{doc-apihelp-example|query+authmanagerinfo}}", + "apihelp-query+authmanagerinfo-example-securitysensitiveoperation": "{{doc-apihelp-example|query+authmanagerinfo}}", "apihelp-query+backlinks-description": "{{doc-apihelp-description|query+backlinks}}", "apihelp-query+backlinks-param-title": "{{doc-apihelp-param|query+backlinks|title}}", "apihelp-query+backlinks-param-pageid": "{{doc-apihelp-param|query+backlinks|pageid}}",