From: Brion Vibber Date: Tue, 24 Feb 2004 08:06:07 +0000 (+0000) Subject: Use that pesky getStylesheet function X-Git-Tag: 1.3.0beta1~955 X-Git-Url: https://git.cyclocoop.org/admin/%7B%7Blocalurl:Special:UserLogin%7D%7D?a=commitdiff_plain;h=5c3cbac6d92b44c199155b64376e07327bafa3ee;p=lhc%2Fweb%2Fwiklou.git Use that pesky getStylesheet function --- diff --git a/includes/SkinCologneBlue.php b/includes/SkinCologneBlue.php index 3279313822..8f1767753d 100644 --- a/includes/SkinCologneBlue.php +++ b/includes/SkinCologneBlue.php @@ -6,9 +6,11 @@ class SkinCologneBlue extends Skin { function initPage() { global $wgOut, $wgStyleSheetPath; + } - $wgOut->addLink( "stylesheet", "", - "{$wgStyleSheetPath}/cologneblue.css" ); + function getStylesheet() + { + return "cologneblue.css"; } function doBeforeContent() diff --git a/includes/SkinNostalgia.php b/includes/SkinNostalgia.php index ed3c4d6ad2..557c88f112 100644 --- a/includes/SkinNostalgia.php +++ b/includes/SkinNostalgia.php @@ -5,10 +5,12 @@ class SkinNostalgia extends Skin { function initPage() { - global $wgOut, $wgStyleSheetPath; + # ... + } - $wgOut->addLink( "stylesheet", "", - "$wgStyleSheetPath/nostalgia.css" ); + function getStylesheet() + { + return "nostalgia.css"; } function doBeforeContent()