From 5c3cbac6d92b44c199155b64376e07327bafa3ee Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 24 Feb 2004 08:06:07 +0000 Subject: [PATCH] Use that pesky getStylesheet function --- includes/SkinCologneBlue.php | 6 ++++-- includes/SkinNostalgia.php | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) 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() -- 2.20.1