Add &useskin=default handling to always display the wiki's default skin.
authorDaniel Friesen <dantman@users.mediawiki.org>
Wed, 15 Feb 2012 19:44:54 +0000 (19:44 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Wed, 15 Feb 2012 19:44:54 +0000 (19:44 +0000)
RELEASE-NOTES-1.20
includes/Skin.php

index d33d508..1068376 100644 (file)
@@ -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.
index 8cf1e78..dae9657 100644 (file)
@@ -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;