Followup r80034. Make sure that $rules actually exists, otherwise we might generate...
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 17 Jan 2011 23:05:21 +0000 (23:05 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 17 Jan 2011 23:05:21 +0000 (23:05 +0000)
skins/CologneBlue.php
skins/Standard.php

index b9a798c..1ff2cca 100644 (file)
@@ -109,6 +109,7 @@ class SkinCologneBlue extends Skin {
        function setupSkinUserCss( OutputPage $out ){
                global $wgContLang;
                $qb = $this->qbSetting();
+               $rules = array();
 
                if ( 2 == $qb ) { # Right
                        $rules[] = "#quickbar { position: absolute; right: 4px; }";
index 5067aa1..2ea6896 100644 (file)
@@ -22,6 +22,8 @@ class SkinStandard extends Skin {
        function setupSkinUserCss( OutputPage $out ){
                global $wgContLang;
                $qb = $this->qbSetting();
+               $rules = array();
+
                if ( 2 == $qb ) { # Right
                        $rules[] = "#quickbar { position: absolute; top: 4px; right: 4px; border-left: 2px solid #000000; }";
                        $rules[] = "#article, #mw-data-after-content { margin-left: 4px; margin-right: 152px; }";