Had a case where $custom_theme got reset before init_theme() was called.
This patch:

--- a/admin_theme/admin_theme.module
+++ b/admin_theme/admin_theme.module
@@ -166,6 +166,7 @@ function admin_theme_init() {
     global $custom_theme;
     $custom_theme = variable_get('admin_theme', '0');
     drupal_add_css(drupal_get_path('module', 'system') .'/admin.css', 'module');
+    init_theme();
   }
 }

solved that problem for me. Not sure still what caused that failure still for my particular case so just wanted to put it out there for review.

Comments

justy’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing this old Drupal 6 issue.