summaryrefslogtreecommitdiff
path: root/includes/api/ApiOpenSearch.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiOpenSearch.php')
-rw-r--r--includes/api/ApiOpenSearch.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php
index 885766d2..084c9860 100644
--- a/includes/api/ApiOpenSearch.php
+++ b/includes/api/ApiOpenSearch.php
@@ -1,6 +1,6 @@
<?php
/**
- * API for MediaWiki 1.8+
+ *
*
* Created on Oct 13, 2006
*
@@ -60,7 +60,7 @@ class ApiOpenSearch extends ApiBase {
$searches = PrefixSearch::titleSearch( $search, $limit,
$namespaces );
-
+
// if the content language has variants, try to retrieve fallback results
$fallbackLimit = $limit - count( $searches );
if ( $fallbackLimit > 0 ) {
@@ -116,7 +116,7 @@ class ApiOpenSearch extends ApiBase {
}
public function getDescription() {
- return 'This module implements OpenSearch protocol';
+ return 'Searches the wiki using the OpenSearch protocol';
}
protected function getExamples() {
@@ -125,7 +125,11 @@ class ApiOpenSearch extends ApiBase {
);
}
+ public function getHelpUrls() {
+ return 'https://www.mediawiki.org/wiki/API:Opensearch';
+ }
+
public function getVersion() {
- return __CLASS__ . ': $Id: ApiOpenSearch.php 79720 2011-01-06 14:48:34Z catrope $';
+ return __CLASS__ . ': $Id: ApiOpenSearch.php 104449 2011-11-28 15:52:04Z reedy $';
}
}