use and set their configured skin even if the wiki administrator has
chosen to disable user skins for the rest of the wiki. Req. by Alexfusco5.
if ( ! isset( $this->mSkin ) ) {
wfProfileIn( __METHOD__ );
- if( $wgAllowUserSkin ) {
+ if( $wgAllowUserSkin || $this->isAllowed( 'alwaysuseskin' ) ) {
# get the user skin
$userSkin = $this->getOption( 'skin' );
$userSkin = $wgRequest->getVal('useskin', $userSkin);
$wgUser->setOption( 'nickname', $this->mNick );
$wgUser->setOption( 'quickbar', $this->mQuickbar );
global $wgAllowUserSkin;
- if( $wgAllowUserSkin ) {
+ if( $wgAllowUserSkin || $wgUser->isAllowed( 'alwaysuseskin' ) ) {
$wgUser->setOption( 'skin', $this->mSkin );
}
global $wgUseTeX;