From d0d91f1a467dd9ed4ac5acea6b5fc7b676c3368a Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 4 Aug 2008 17:30:01 +0000 Subject: [PATCH] Use wfScript() --- includes/Skin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 8cf19fb156..71ada4cf87 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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' ), )); -- 2.20.1