From 522d92761a129c0d94fc61522d55c40ea02b866d Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Wed, 15 Feb 2012 19:44:54 +0000 Subject: [PATCH] Add &useskin=default handling to always display the wiki's default skin. --- RELEASE-NOTES-1.20 | 2 ++ includes/Skin.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index d33d508b39..106837601d 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -15,6 +15,8 @@ production. === New features in 1.20 === * Added TitleIsAlwaysKnown hook which gets called when determining if a page exists. * (bug 32341) Add upload by URL domain limitation. +* &useskin=default will now always display the default skin. Useful for users with a + preference for the non-default skin to look at something using the default skin. === Bug fixes in 1.20 === * (bug 30245) Use the correct way to construct a log page title. diff --git a/includes/Skin.php b/includes/Skin.php index 8cf1e78cb4..dae965710a 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -98,7 +98,7 @@ abstract class Skin extends ContextSource { $skinNames = Skin::getSkinNames(); - if ( $key == '' ) { + if ( $key == '' || $key == 'default' ) { // Don't return the default immediately; // in a misconfiguration we need to fall back. $key = $wgDefaultSkin; -- 2.20.1