? theme-allow-missing-css-b.patch
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.768
diff -u -p -r1.768 common.inc
--- includes/common.inc	16 May 2008 01:23:31 -0000	1.768
+++ includes/common.inc	26 May 2008 12:42:27 -0000
@@ -1713,6 +1713,8 @@ function drupal_get_css($css = NULL) {
           unset($types[$type][$file]);
           continue;
         }
+        // Only include the stylesheet if it exists
+        if (file_exists($file)) {
         if (!$preprocess || !($is_writable && $preprocess_css)) {
           // If a CSS file is not to be preprocessed and it's a module CSS file, it needs to *always* appear at the *top*,
           // regardless of whether preprocessing is on or off.
@@ -1728,6 +1730,7 @@ function drupal_get_css($css = NULL) {
             $output .= '<link type="text/css" rel="stylesheet" media="' . $media . '" href="' . base_path() . $file . $query_string . '" />' . "\n";
           }
         }
+        }
       }
     }
 
Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.423
diff -u -p -r1.423 theme.inc
--- includes/theme.inc	23 May 2008 08:28:30 -0000	1.423
+++ includes/theme.inc	26 May 2008 12:42:29 -0000
@@ -436,9 +436,7 @@ function list_themes($refresh = FALSE) {
     foreach ($themes as $theme) {
       foreach ($theme->info['stylesheets'] as $media => $stylesheets) {
         foreach ($stylesheets as $stylesheet => $path) {
-          if (file_exists($path)) {
             $theme->stylesheets[$media][$stylesheet] = $path;
-          }
         }
       }
       foreach ($theme->info['scripts'] as $script => $path) {
