*Cleanup log and timestamps for merge stuff
[lhc/web/wiklou.git] / opensearch_desc.php
index cd3638f..b06b7fe 100644 (file)
@@ -16,10 +16,10 @@ if ( !preg_match( '/^https?:/', $wgFavicon ) ) {
        $favicon = htmlspecialchars( $wgFavicon );
 }
 
-$title = Title::makeTitle( NS_SPECIAL, 'Search' );
+$title = SpecialPage::getTitleFor( 'Search' );
 $template = $title->escapeFullURL( 'search={searchTerms}' );
 
-$suggest = $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}';
+$suggest = htmlspecialchars($wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}');
 
 
 $response = $wgRequest->response();