Use that pesky getStylesheet function
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 24 Feb 2004 08:06:07 +0000 (08:06 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 24 Feb 2004 08:06:07 +0000 (08:06 +0000)
includes/SkinCologneBlue.php
includes/SkinNostalgia.php

index 3279313..8f17677 100644 (file)
@@ -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()
index ed3c4d6..557c88f 100644 (file)
@@ -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()