From 64f8781f789912751849c506a9a412ed27ddd0db Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 16 Nov 2002 18:06:32 +0000 Subject: - made the themes path aware. If your theme creates a constructor function it will now be passed the filename as the first parameter. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 169100092..8c3047466 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -139,7 +139,7 @@ function theme_init() { if (is_object($themes[$name])) { include_once($themes[$name]->filename); $theme_class = "Theme_$name"; - @$obj =& new $theme_class; + @$obj =& new $theme_class($themes[$name]->filename); return $obj; } -- cgit v1.2.3