From: Alexandre Emsenhuber Date: Mon, 21 Jul 2008 17:13:55 +0000 (+0000) Subject: We already have the skin in $this->data, no need to take it from $wgUser X-Git-Tag: 1.31.0-rc.0~46428 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=c7661f1ecf5bfa0edc7e0448b3447b73b5212aa8;p=lhc%2Fweb%2Fwiklou.git We already have the skin in $this->data, no need to take it from $wgUser --- diff --git a/skins/Modern.php b/skins/Modern.php index 1dc28dfb65..32581b16ed 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -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 { html('headlinks') ?> <?php $this->text('pagetitle') ?> - data['printable']) ) { ?> +data['printable']) ) { ?>