From 7b9166947f6449c90bcdaadafcfe79f36aa2ef19 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 28 May 2006 23:11:41 +0000 Subject: [PATCH] (bug 4033) Respect $wgStyleDirectory when checking available skins --- RELEASE-NOTES | 1 + includes/Skin.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4a02a0f71f..7117ec0fb2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -374,6 +374,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN preceding colon, allowing prettied-up messages * (bug 6040) Run pre-save transform before calculating the diff. when doing a "show changes" operation in the editor +* (bug 4033) Respect $wgStyleDirectory when checking available skins == Compatibility == diff --git a/includes/Skin.php b/includes/Skin.php index 46a2fa921f..5246e2a812 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -12,12 +12,12 @@ if ( ! defined( 'MEDIAWIKI' ) ) require_once( 'Linker.php' ); require_once( 'Image.php' ); -# Get a list of all skins available in /skins/ +# Get a list of available skins # Build using the regular expression '^(.*).php$' # Array keys are all lower case, array value keep the case used by filename # -$skinDir = dir($IP.'/skins'); +$skinDir = dir( $wgStyleDirectory ); # while code from www.php.net while (false !== ($file = $skinDir->read())) { -- 2.20.1