### Eclipse Workspace Patch 1.0
#P skinr_1
Index: skinr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/skinr/skinr.module,v
retrieving revision 1.13.2.8
diff -u -r1.13.2.8 skinr.module
--- skinr.module	12 Feb 2010 21:33:32 -0000	1.13.2.8
+++ skinr.module	17 Feb 2010 23:46:57 -0000
@@ -285,10 +285,14 @@
   $current_theme = skinr_current_theme();
   $theme_registry = theme_get_registry();
 
-  // Add any base themes.
-  $themes = array_keys(system_find_base_themes(system_theme_data(), $current_theme));
-  // Add the current theme.
-  $themes[] = $current_theme;
+  static $themes = array();
+  if (empty($themes)) {
+    // Add any base themes.
+    $theme_data = _system_theme_data();
+    $themes = array_keys($theme_data[$current_theme]->base_themes);
+    // Add the current theme.
+    $themes[] = $current_theme;
+  }
 
   $original_hook = $hook;
   if (isset($theme_registry[$hook]['original hook'])) {

