Use wfScript()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 4 Aug 2008 17:30:01 +0000 (17:30 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 4 Aug 2008 17:30:01 +0000 (17:30 +0000)
includes/Skin.php

index 8cf19fb..71ada4c 100644 (file)
@@ -157,7 +157,7 @@ class Skin extends Linker {
        }
 
        function initPage( &$out ) {
-               global $wgFavicon, $wgAppleTouchIcon, $wgScriptPath, $wgScriptExtension;
+               global $wgFavicon, $wgAppleTouchIcon;
 
                wfProfileIn( __METHOD__ );
 
@@ -173,7 +173,7 @@ class Skin extends Linker {
                $out->addLink( array(
                        'rel' => 'search',
                        'type' => 'application/opensearchdescription+xml',
-                       'href' => "$wgScriptPath/opensearch_desc{$wgScriptExtension}",
+                       'href' => wfScript( 'opensearch_desc' ),
                        'title' => wfMsgForContent( 'opensearch-desc' ),
                ));