From c1b4a3782768c9a8b1071d3ddd20fabe1bffaa24 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 23 May 2018 14:56:13 -0700 Subject: [PATCH] Skin: Drop appending of wgStyleVersion in getSkinStylePath() This setting is deprecated. Bug: T181318 Change-Id: I9e56764e37b5f10ce1bddfb7826c18982fb1ebb2 --- includes/skins/Skin.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 5dfa7e36c3..252c08d124 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -1095,25 +1095,25 @@ abstract class Skin extends ContextSource { } /** - * Return a fully resolved style path url to images or styles stored in the current skins's folder. - * This method returns a url resolved using the configured skin style path - * and includes the style version inside of the url. + * Return a fully resolved style path URL to images or styles stored in the + * current skin's folder. This method returns a URL resolved using the + * configured skin style path. * * Requires $stylename to be set, otherwise throws MWException. * * @param string $name The name or path of a skin resource file - * @return string The fully resolved style path url including styleversion + * @return string The fully resolved style path URL * @throws MWException */ function getSkinStylePath( $name ) { - global $wgStylePath, $wgStyleVersion; + global $wgStylePath; if ( $this->stylename === null ) { $class = static::class; throw new MWException( "$class::\$stylename must be set to use getSkinStylePath()" ); } - return "$wgStylePath/{$this->stylename}/$name?$wgStyleVersion"; + return "$wgStylePath/{$this->stylename}/$name"; } /* these are used extensively in SkinTemplate, but also some other places */ -- 2.20.1