DatGuy has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/331992 )

Change subject: Fix extension failing tests due to missing apihelp
......................................................................

Fix extension failing tests due to missing apihelp

Extension WebPlatformSearchAutocomplete failing tests due to missing
apihelp messages.

Bug: T155033
Change-Id: I8bd10fa4513894ead43ba754fa519d0e282d196c
---
M i18n/en.json
M i18n/qqq.json
M includes/api/ApiWebplatformSearch.php
3 files changed, 7 insertions(+), 17 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WebPlatformSearchAutocomplete
 refs/changes/92/331992/1

diff --git a/i18n/en.json b/i18n/en.json
index 7a3e8d1..91494fb 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -4,5 +4,8 @@
                        "Robert Vogel"
                ]
        },
-       "webplatformsearchautocomplete-desc": "Provides customized autocomplete 
functionality for webplatform.org search"
+       "webplatformsearchautocomplete-desc": "Provides customized autocomplete 
functionality for webplatform.org search",
+       "apihelp-webplatformsearch-description": "Search the webplatform.org 
wiki",
+       "apihelp-webplatformsearch-param-term": "Search string",
+       "apihelp-webplatformsearch-example": 
"<code>api.php?action=webplatformsearch&term=Te</code>"
 }
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 026ef72..bfed1b0 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -6,4 +6,7 @@
                ]
        },
        "webplatformsearchautocomplete-desc": "{{desc|name=Web Platform Search 
Autocomplete|url=http://www.hallowelt.biz}}";
+       "apihelp-webplatformsearch-description": 
"{{doc-apihelp-description|webplatformsearch}}",
+       "apihelp-webplatformsearch-param-term": 
"{{doc-apihelp-param|webplatformsearch|term}}",
+       "apihelp-webplatformsearch-example": 
"{{doc-apihelp-example|webplatformsearch}}"
 }
diff --git a/includes/api/ApiWebplatformSearch.php 
b/includes/api/ApiWebplatformSearch.php
index 1214e91..ac2cc59 100644
--- a/includes/api/ApiWebplatformSearch.php
+++ b/includes/api/ApiWebplatformSearch.php
@@ -88,22 +88,6 @@
                );
        }
 
-       public function getParamDescription() {
-               return array(
-                       'term' => 'Search string'
-               );
-       }
-
-       public function getDescription() {
-               return 'Search the webplatform.org wiki';
-       }
-
-       public function getExamples() {
-               return array(
-                       'api.php?action=webplatformsearch&term=Te'
-               );
-       }
-
        public function getHelpUrls() {
                return 'https://www.webplatform.org';
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/331992
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8bd10fa4513894ead43ba754fa519d0e282d196c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WebPlatformSearchAutocomplete
Gerrit-Branch: master
Gerrit-Owner: DatGuy <datguyst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to