Commit cc508ad2 authored by Dries's avatar Dries
Browse files

- Patch 13738 by TDobes: there was a major theming issue I missed in my...

- Patch 13738 by TDobes: there was a major theming issue I missed in my bug-testing after the multi-site patch landed.  Styles now seem to have their description field filled with the filename of their parent theme/template rather than the theme_key of the parent. This is a problem because init_theme still expected to see the theme_key and therefore dropped back to the base theme (no theme at all).
parent 3cd9a1b2
...@@ -56,7 +56,7 @@ function init_theme() { ...@@ -56,7 +56,7 @@ function init_theme() {
// File is a style; loads its CSS. // File is a style; loads its CSS.
// Set theme to its template/theme // Set theme to its template/theme
theme_add_style($themes[$theme]->filename); theme_add_style($themes[$theme]->filename);
$theme = $themes[$theme]->description; $theme = basename(dirname($themes[$theme]->description));
} }
else { else {
// File is a template/theme // File is a template/theme
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment