From cc508ad2f05a311938d8ff850660a9f65e741296 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 1 Dec 2004 22:41:19 +0000 Subject: - 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). --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/theme.inc b/includes/theme.inc index 2cc2b02e4..09de82652 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -56,7 +56,7 @@ function init_theme() { // File is a style; loads its CSS. // Set theme to its template/theme theme_add_style($themes[$theme]->filename); - $theme = $themes[$theme]->description; + $theme = basename(dirname($themes[$theme]->description)); } else { // File is a template/theme -- cgit v1.2.3