diff options
Diffstat (limited to 'includes/api/ApiOpenSearch.php')
-rw-r--r-- | includes/api/ApiOpenSearch.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index a69ca759f69a..403446b229f2 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -381,12 +381,6 @@ class ApiOpenSearch extends ApiBase { */ public static function getOpenSearchTemplate( $type ) { $config = MediaWikiServices::getInstance()->getSearchEngineConfig(); - $template = $config->getConfig()->get( MainConfigNames::OpenSearchTemplate ); - - if ( $template && $type === 'application/x-suggestions+json' ) { - return $template; - } - $ns = implode( '|', $config->defaultNamespaces() ); if ( !$ns ) { $ns = '0'; |