From d755aab30283566d1536feccbc887018a838cea5 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Mon, 5 Sep 2011 15:30:01 +0000 Subject: [PATCH] Pass the key for the skin being created to the constructor of a skin. This is just something that's been bothering me for awhile, without this it's hard to create extensions that dynamically load skins and implement the skin conversion functionality in a central class. --- includes/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index da19a6b7d6..10eba643ad 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -156,7 +156,7 @@ abstract class Skin extends ContextSource { } } } - $skin = new $className; + $skin = new $className( $key ); return $skin; } -- 2.20.1