X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiOpenSearch.php;h=0727cffd45a1b0f508bdb5dab439d4ece96da561;hb=4807964201b1233d4f932de9571488587143371e;hp=ea697719ae3b62137218f3d8728711a6ac58cae2;hpb=d5e46f96146d4d7312d0762ba21deed01f79993a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index ea697719ae..0727cffd45 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( "ApiBase.php" ); -} - /** * @ingroup API */ @@ -116,17 +111,17 @@ class ApiOpenSearch extends ApiBase { } public function getDescription() { - return 'Searches the wiki using the OpenSearch protocol'; + return 'Search the wiki using the OpenSearch protocol'; } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=opensearch&search=Te' ); } public function getHelpUrls() { - return 'http://www.mediawiki.org/wiki/API:Opensearch'; + return 'https://www.mediawiki.org/wiki/API:Opensearch'; } public function getVersion() {