Preferences: Use case-insensitive comparison for skin names
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 27 Apr 2015 21:44:05 +0000 (23:44 +0200)
committerOri.livneh <ori@wikimedia.org>
Thu, 30 Apr 2015 16:01:29 +0000 (16:01 +0000)
They are treated case-insensitively everywhere else.

Change-Id: I2561150aca9d88ad67ef359143f06d0ee90ab52e

includes/Preferences.php

index 74a917d..9b0ada8 100644 (file)
@@ -1098,7 +1098,7 @@ class Preferences {
                        $linkTools = array();
 
                        # Mark the default skin
-                       if ( $skinkey == $defaultSkin ) {
+                       if ( strcasecmp( $skinkey, $defaultSkin ) === 0 ) {
                                $linkTools[] = $context->msg( 'default' )->escaped();
                                $foundDefault = true;
                        }