summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-11-17 16:32:03 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-11-17 16:32:03 +0000
commit15f1a61197196ac3709f25255de5fbb6d3ef9801 (patch)
tree2bebd2fa62ba14447fd3f1d858b52a70ec192dfa /includes
parent4d45f0c777e278df3608070443681957b47b3239 (diff)
downloadbrdo-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.inc3
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;
}