- fixing bug reported by Remco.
parent
d8cd54969c
commit
7e6acb5bbd
|
@ -102,7 +102,7 @@ function theme_init() {
|
||||||
$name = $user->theme ? $user->theme : variable_get("theme_default", 0);
|
$name = $user->theme ? $user->theme : variable_get("theme_default", 0);
|
||||||
if (is_object($themes[$name])) {
|
if (is_object($themes[$name])) {
|
||||||
include_once($themes[$name]->filename);
|
include_once($themes[$name]->filename);
|
||||||
$theme_class = "Theme_$user->theme";
|
$theme_class = "Theme_$name";
|
||||||
@$obj =& new $theme_class;
|
@$obj =& new $theme_class;
|
||||||
return $obj;
|
return $obj;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue