Merge "(follow-up) Fix "file not found" error in mediawiki.language."
[lhc/web/wiklou.git] / includes / api / ApiOpenSearch.php
index 9a09c27..0727cff 100644 (file)
  * @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 '';
+               return 'https://www.mediawiki.org/wiki/API:Opensearch';
        }
 
        public function getVersion() {