From: Derk-Jan Hartman Date: Mon, 17 Jan 2011 23:05:21 +0000 (+0000) Subject: Followup r80034. Make sure that $rules actually exists, otherwise we might generate... X-Git-Tag: 1.31.0-rc.0~32493 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=4dba97b07098203c0ae56909218dfbc1822574eb;p=lhc%2Fweb%2Fwiklou.git Followup r80034. Make sure that $rules actually exists, otherwise we might generate errors. --- diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index b9a798c33d..1ff2ccab40 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -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; }"; diff --git a/skins/Standard.php b/skins/Standard.php index 5067aa109c..2ea6896d90 100644 --- a/skins/Standard.php +++ b/skins/Standard.php @@ -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; }";