Per CR, revert r75873. Does not match docs
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 3 Nov 2010 13:55:22 +0000 (13:55 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 3 Nov 2010 13:55:22 +0000 (13:55 +0000)
includes/User.php

index ab6f1c5..88dd403 100644 (file)
@@ -2276,18 +2276,18 @@ class User {
        private function createSkinObject() {
                wfProfileIn( __METHOD__ );
 
-               global $wgHiddenPrefs, $wgRequest;
+               global $wgHiddenPrefs;
                if( !in_array( 'skin', $wgHiddenPrefs ) ) {
+                       global $wgRequest;
                        # get the user skin
                        $userSkin = $this->getOption( 'skin' );
+                       $userSkin = $wgRequest->getVal( 'useskin', $userSkin );
                } else {
                        # if we're not allowing users to override, then use the default
                        global $wgDefaultSkin;
                        $userSkin = $wgDefaultSkin;
                }
 
-               $userSkin = $wgRequest->getVal( 'useskin', $userSkin );
-
                $skin = Skin::newFromKey( $userSkin );
                wfProfileOut( __METHOD__ );