diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-11-17 16:32:03 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-11-17 16:32:03 +0000 |
commit | 15f1a61197196ac3709f25255de5fbb6d3ef9801 (patch) | |
tree | 2bebd2fa62ba14447fd3f1d858b52a70ec192dfa /includes | |
parent | 4d45f0c777e278df3608070443681957b47b3239 (diff) | |
download | brdo-15f1a61197196ac3709f25255de5fbb6d3ef9801.tar.gz brdo-15f1a61197196ac3709f25255de5fbb6d3ef9801.tar.bz2 |
- changing theme patch. Now Drupal will init the $this->path automatically.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |