summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-11-16 18:06:32 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-11-16 18:06:32 +0000
commit64f8781f789912751849c506a9a412ed27ddd0db (patch)
treec81c000dab38f412aafdfb4a683ae77f4f67f4e1 /includes
parent02f0dce5cb344d3ce2fca62467b44eebd81dfd48 (diff)
downloadbrdo-64f8781f789912751849c506a9a412ed27ddd0db.tar.gz
brdo-64f8781f789912751849c506a9a412ed27ddd0db.tar.bz2
- made the themes path aware. If your theme creates a constructor function it
will now be passed the filename as the first parameter.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc2
1 files changed, 1 insertions, 1 deletions
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;
}