From: Daniel Friesen Date: Sat, 4 Dec 2010 14:45:14 +0000 (+0000) Subject: Implement getSkinStylePath and getCommonStylePath for image paths used directly in... X-Git-Tag: 1.31.0-rc.0~33577 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=838ed7b6e24e265895bc1ae889871473062a64d7;p=lhc%2Fweb%2Fwiklou.git Implement getSkinStylePath and getCommonStylePath for image paths used directly in a skin, use it for vector's search icon. --- 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' ) ?>" />