From ed74c1549c6fce65e95eafa5df0b1d811c3dfa26 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 26 Dec 2010 22:24:55 +0000 Subject: [PATCH] When running phpunit with globals backup, $skinsInitialised will be kept to true, but $wgValidSkinNames reset to an empty array. Workarounding. --- includes/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index 7da81b4b10..fe57e5f518 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -41,7 +41,7 @@ class Skin extends Linker { global $wgValidSkinNames; static $skinsInitialised = false; - if ( !$skinsInitialised ) { + if ( !$skinsInitialised || !count( $wgValidSkinNames ) ) { # 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 -- 2.20.1