We already have the skin in $this->data, no need to take it from $wgUser
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 21 Jul 2008 17:13:55 +0000 (17:13 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 21 Jul 2008 17:13:55 +0000 (17:13 +0000)
skins/Modern.php
skins/MonoBook.php

index 1dc28df..32581b1 100644 (file)
@@ -48,8 +48,8 @@ class ModernTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
-               global $wgUser, $wgRequest;
-               $this->skin = $skin = $wgUser->getSkin();
+               global $wgRequest;
+               $this->skin = $skin = $this->data['skin'];
                $action = $wgRequest->getText( 'action' );
 
                // Suppress warnings to prevent notices about missing indexes in $this->data
@@ -64,7 +64,7 @@ class ModernTemplate extends QuickTemplate {
                <meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
                <?php $this->html('headlinks') ?>
                <title><?php $this->text('pagetitle') ?></title>
-               <?php if(empty($this->data['printable']) ) { ?>
+<?php  if(empty($this->data['printable']) ) { ?>
                <style type="text/css" media="screen, projection">/*<![CDATA[*/
                        @import "<?php $this->text('stylepath') ?>/common/shared.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";
                        @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";
index c17fc71..a0b3157 100644 (file)
@@ -46,8 +46,8 @@ class MonoBookTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
-               global $wgUser, $wgRequest;
-               $this->skin = $skin = $wgUser->getSkin();
+               global $wgRequest;
+               $this->skin = $skin = $this->data['skin'];
                $action = $wgRequest->getText( 'action' );
 
                // Suppress warnings to prevent notices about missing indexes in $this->data