When running phpunit with globals backup, $skinsInitialised will be kept to true...
authorPlatonides <platonides@users.mediawiki.org>
Sun, 26 Dec 2010 22:24:55 +0000 (22:24 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 26 Dec 2010 22:24:55 +0000 (22:24 +0000)
includes/Skin.php

index 7da81b4..fe57e5f 100644 (file)
@@ -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