Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.419
diff -u -9 -p -r1.419 bootstrap.inc
--- includes/bootstrap.inc	16 Sep 2010 01:10:38 -0000	1.419
+++ includes/bootstrap.inc	24 Sep 2010 19:54:52 -0000
@@ -670,35 +670,32 @@ function drupal_settings_initialize() {
 function drupal_get_filename($type, $name, $filename = NULL) {
   // The location of files will not change during the request, so do not use
   // drupal_static().
   static $files = array();
 
   if (!isset($files[$type])) {
     $files[$type] = array();
   }
 
-  if (!empty($filename) && file_exists($filename)) {
+  if (!empty($filename)) {
     $files[$type][$name] = $filename;
   }
   elseif (isset($files[$type][$name])) {
     // nothing
   }
   // Verify that we have an active database connection, before querying
   // the database. This is required because this function is called both
   // before we have a database connection (i.e. during installation) and
   // when a database connection fails.
   else {
     try {
       if (function_exists('db_query')) {
-        $file = db_query("SELECT filename FROM {system} WHERE name = :name AND type = :type", array(':name' => $name, ':type' => $type))->fetchField();
-        if (file_exists($file)) {
-          $files[$type][$name] = $file;
-        }
+        $files[$type][$name] = db_query("SELECT filename FROM {system} WHERE name = :name AND type = :type", array(':name' => $name, ':type' => $type))->fetchField();
       }
     }
     catch (Exception $e) {
       // The database table may not exist because Drupal is not yet installed,
       // or the database might be down. We have a fallback for this case so we
       // hide the error completely.
     }
     // Fallback to searching the filesystem if the database could not find the
     // file or the file returned by the database is not found.
Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.613
diff -u -9 -p -r1.613 theme.inc
--- includes/theme.inc	24 Sep 2010 00:37:41 -0000	1.613
+++ includes/theme.inc	24 Sep 2010 19:54:53 -0000
@@ -576,21 +576,19 @@ function list_themes($refresh = FALSE) {
 
   if (empty($list)) {
     $list = array();
     $themes = array();
     // Extract from the database only when it is available.
     // Also check that the site is not in the middle of an install or update.
     if (!defined('MAINTENANCE_MODE')) {
       try {
         foreach (system_list('theme') as $theme) {
-          if (file_exists($theme->filename)) {
-            $themes[] = $theme;
-          }
+          $themes[] = $theme;
         }
       }
       catch (Exception $e) {
         // If the database is not available, rebuild the theme data.
         $themes = _system_rebuild_theme_data();
       }
     }
     else {
       // Scan the installation when the database should not be read.
