From 79dcf7686d857e1dcbc3f1127a106d847de10d9e Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 9 Jun 2012 16:09:18 +0200 Subject: [PATCH] Deprecate no longer used Skin::getCommonStylePath. * All use has been removed in core. Marking for deprecation, to be removed later. Change-Id: Ib247991edd29ea810919a19b34ffc06430f42fc2 --- RELEASE-NOTES-1.20 | 1 + includes/Skin.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 350b6b9938..f8af88a2e9 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -154,6 +154,7 @@ changes to languages because of Bugzilla reports. * Removed ./tests/qunit/index.html from core. It wasn't actively maintained and has been made obsolete when [[Special:JavaScriptTest/qunit]] was introduced, which actually uses ResourceLoader, LocalSettings and the Skin. +* Skin::getCommonStylePath has been deprecated. Its use is obsolete. == Compatibility == diff --git a/includes/Skin.php b/includes/Skin.php index 8d47b83d0f..a2d5e0ffc1 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1033,11 +1033,16 @@ 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. + * @deprecated since 1.20: obsolete + * * @param $name String: The name or path of a skin resource file * @return String The fully resolved style path url including styleversion */ function getCommonStylePath( $name ) { global $wgStylePath, $wgStyleVersion; + + wfDeprecated( __METHOD__, '1.20' ); + return "$wgStylePath/common/$name?$wgStyleVersion"; } -- 2.20.1