Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.415.2.12
diff -u -p -r1.415.2.12 theme.inc
--- includes/theme.inc	17 Sep 2008 08:57:23 -0000	1.415.2.12
+++ includes/theme.inc	28 Oct 2008 19:40:53 -0000
@@ -805,6 +805,12 @@ function drupal_find_theme_templates($ca
         'path' => dirname($file->filename),
       );
     }
+    // Ensure that the 'pattern' isn't destroyed by registering the
+    // base template so that subthemes can continue to register based
+    // upon the pattern.
+    if (isset($cache[$hook]['pattern'])) {
+      $templates[$hook]['pattern'] = $cache[$hook]['pattern'];
+    }
   }
 
   $patterns = array_keys($files);
