Skin: Make normalizeKey() accept non-canonical case variants of keys
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 13 Jul 2014 01:23:55 +0000 (03:23 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 13 Jul 2014 01:23:55 +0000 (03:23 +0200)
commitc470c9e16a1e13b403a191d49b168355b5ac0a89
tree37d19725ae5ee6a5356e85ebb12a3d6d4e1c3ac0
parent8d1eec50209fc63957638c4309ca2b126b0c635c
Skin: Make normalizeKey() accept non-canonical case variants of keys

For example, passing 'MonoBook' and 'monobook' will now both yield
'monobook'; previously, the former yielded the default skin ('vector').

This magically fixes casing issues in the &useskin= URL parameter, as
well as in configuration variables like $wgDefaultSkin.

(This is per agreement on wikitech-l discussion a few weeks ago,
"What should be the recommended / supported way to do skins?").

Change-Id: I0df77b6d42726605b56d52b34e204113e8089e80
includes/Skin.php