From 838ed7b6e24e265895bc1ae889871473062a64d7 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sat, 4 Dec 2010 14:45:14 +0000 Subject: [PATCH] Implement getSkinStylePath and getCommonStylePath for image paths used directly in a skin, use it for vector's search icon. --- includes/Skin.php | 10 ++++++++++ skins/Vector.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index f59742fab2..badafb6e30 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2036,6 +2036,16 @@ class Skin extends Linker { } } + function getCommonStylePath( $fname ) { + global $wgStylePath, $wgStyleVersion; + return "{$wgStylePath}/common/$name?$wgStyleVersion"; + } + + function getSkinStylePath( $fname ) { + global $wgStylePath, $wgStyleVersion; + return "{$wgStylePath}/{$this->stylename}/$fname?$wgStyleVersion"; + } + /* these are used extensively in SkinTemplate, but also some other places */ static function makeMainPageUrl( $urlaction = '' ) { $title = Title::newMainPage(); diff --git a/skins/Vector.php b/skins/Vector.php index 469569dd0e..edad705b79 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -758,7 +758,7 @@ class VectorTemplate extends QuickTemplate { getOption( 'vector-simplesearch' ) ): ?>
skin->tooltipAndAccesskey( 'search' ); ?> data['search'] ) ): ?> value="text( 'search' ) ?>" /> - +
skin->tooltipAndAccesskey( 'search' ); ?> data['search'] ) ): ?> value="text( 'search' ) ?>" /> -- 2.20.1