From 15f1a61197196ac3709f25255de5fbb6d3ef9801 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 17 Nov 2002 16:32:03 +0000 Subject: - changing theme patch. Now Drupal will init the $this->path automatically. --- includes/theme.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 8c3047466..11b1877a4 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -139,7 +139,8 @@ function theme_init() { if (is_object($themes[$name])) { include_once($themes[$name]->filename); $theme_class = "Theme_$name"; - @$obj =& new $theme_class($themes[$name]->filename); + @$obj =& new $theme_class(); + $obj->path = dirname($themes[$name]->filename); return $obj; } -- cgit v1.2.3