Deprecate defunct Skin::getCommonStylePath()
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 9 Sep 2014 15:26:23 +0000 (17:26 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 9 Sep 2014 15:26:23 +0000 (17:26 +0200)
Change-Id: I5e4b870363ff885a4625c2d059048e85395fd159

RELEASE-NOTES-1.24
includes/skins/Skin.php

index e13654e..7327294 100644 (file)
@@ -455,6 +455,7 @@ changes to languages because of Bugzilla reports.
 * LCStoreAccel was removed. $wgLocalisationCacheConf can no longer be set to
   use this store class.
 * Html::infoBox() no longer accepts paths relative to skins/common/images/.
+* Deprecated defunct Skin::getCommonStylePath().
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
index 7d04b95..d68823d 100644 (file)
@@ -1008,15 +1008,18 @@ abstract class Skin extends ContextSource {
        }
 
        /**
-        * Return a fully resolved style path url to images or styles stored in the common folder.
-        * This method returns a url resolved using the configured skin style path
-        * and includes the style version inside of the url.
+        * This function previously returned a fully resolved style path URL to images or styles stored in
+        * the legacy skins/common/ directory.
+        *
+        * That directory has been removed in 1.24 and the function always returns an empty string.
+        *
+        * @deprecated since 1.24
         * @param string $name The name or path of a skin resource file
-        * @return string The fully resolved style path url including styleversion
+        * @return string Empty string
         */
        function getCommonStylePath( $name ) {
-               global $wgStylePath, $wgStyleVersion;
-               return "$wgStylePath/common/$name?$wgStyleVersion";
+               wfDeprecated( __METHOD__, '1.24' );
+               return '';
        }
 
        /**