Fix #3366 : require skins based on SkinTemplate to override the skinname property.
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Apr 2007 13:23:16 +0000 (13:23 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Apr 2007 13:23:16 +0000 (13:23 +0000)
RELEASE-NOTES
includes/Skin.php

index de9c3c3..d9dff2a 100644 (file)
@@ -313,6 +313,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 9554) Extension-provided group name messages not used
 * (bug 9565) Translate template namespace name for Hindi (hi)
 * (bug 8599) Correct localized names of zh-variants
+* (bug 3366) Require skins based on SkinTemplate to override the skinname
+  property.
 
 == Maintenance ==
 
index d5477d0..83b5440 100644 (file)
@@ -23,6 +23,7 @@ class Skin extends Linker {
        var $rcMoveIndex;
        var $mWatchLinkNum = 0; // Appended to end of watch link id's
        /**#@-*/
+       protected $skinname = 'standard' ;
 
        /** Constructor, call parent constructor */
        function Skin() { parent::__construct(); }
@@ -142,8 +143,8 @@ class Skin extends Linker {
        }
 
        /** @return string skin name */
-       function getSkinName() {
-               return 'standard';
+       public function getSkinName() {
+               return $this->skinname;
        }
 
        function qbSetting() {