Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.267
diff -u -F^f -r1.267 theme.inc
--- includes/theme.inc	10 Dec 2005 19:26:47 -0000	1.267
+++ includes/theme.inc	18 Dec 2005 01:00:27 -0000
@@ -66,6 +66,9 @@ function init_theme() {
     }
   }
 
+  if (!isset($themes[$theme])) {
+    $themes[$theme] = db_fetch_object(db_query("SELECT * FROM {system} WHERE type = 'theme' AND name = '%s'", $theme));
+  }
   if (strpos($themes[$theme]->filename, '.theme')) {
     // file is a theme; include it
    include_once './' . $themes[$theme]->filename;
