Index: branches/REL1_18/extensions/OpenSearchXml/OpenSearchXml.php |
— | — | @@ -52,10 +52,10 @@ |
53 | 53 | } |
54 | 54 | |
55 | 55 | function efOpenSearchXmlTemplate() { |
56 | | - global $wgServer, $wgScriptPath; |
| 56 | + global $wgCanonicalServer, $wgScriptPath; |
57 | 57 | $ns = implode( '|', SearchEngine::defaultNamespaces() ); |
58 | 58 | if( !$ns ) { |
59 | 59 | $ns = '0'; |
60 | 60 | } |
61 | | - return $wgServer . $wgScriptPath . '/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=' . $ns; |
| 61 | + return $wgCanonicalServer . $wgScriptPath . '/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=' . $ns; |
62 | 62 | } |