From: Ilmari Karonen Date: Mon, 3 Nov 2008 08:08:02 +0000 (+0000) Subject: oops, r43111 was incomplete, here's the rest of it :-/ X-Git-Tag: 1.31.0-rc.0~44452 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=1bf6aa98efd646c91026a4c6a2f32fc21ccf4a53;p=lhc%2Fweb%2Fwiklou.git oops, r43111 was incomplete, here's the rest of it :-/ --- diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index ca13d685d7..6f88b8b791 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -42,7 +42,7 @@ class PreferencesForm { $this->mStubs = $request->getVal( 'wpStubs' ); $this->mRows = $request->getVal( 'wpRows' ); $this->mCols = $request->getVal( 'wpCols' ); - $this->mSkin = $request->getVal( 'wpSkin' ); + $this->mSkin = Skin::normalizeKey( $request->getVal( 'wpSkin' ) ); $this->mMath = $request->getVal( 'wpMath' ); $this->mDate = $request->getVal( 'wpDate' ); $this->mUserEmail = $request->getVal( 'wpUserEmail' ); @@ -268,7 +268,10 @@ class PreferencesForm { $wgUser->setOption( 'variant', $this->mUserVariant ); $wgUser->setOption( 'nickname', $this->mNick ); $wgUser->setOption( 'quickbar', $this->mQuickbar ); - $wgUser->setOption( 'skin', $this->mSkin ); + global $wgAllowUserSkin; + if( $wgAllowUserSkin ) { + $wgUser->setOption( 'skin', $this->mSkin ); + } global $wgUseTeX; if( $wgUseTeX ) { $wgUser->setOption( 'math', $this->mMath );