Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.130 diff -u -r1.130 bootstrap.inc --- includes/bootstrap.inc 12 Nov 2006 19:16:09 -0000 1.130 +++ includes/bootstrap.inc 22 Nov 2006 00:37:28 -0000 @@ -789,8 +789,8 @@ require_once './includes/unicode.inc'; require_once './modules/filter/filter.module'; unicode_check(); - drupal_add_css(drupal_get_path('module', 'system') .'/defaults.css', 'core'); - drupal_add_css(drupal_get_path('module', 'system') .'/system.css', 'core'); + drupal_add_css(drupal_get_path('module', 'system', FALSE) .'/defaults.css', 'core'); + drupal_add_css(drupal_get_path('module', 'system', FALSE) .'/system.css', 'core'); $theme = ''; } Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.589 diff -u -r1.589 common.inc --- includes/common.inc 21 Nov 2006 19:40:09 -0000 1.589 +++ includes/common.inc 22 Nov 2006 00:37:30 -0000 @@ -1252,12 +1252,15 @@ * The type of the item (i.e. theme, theme_engine, module). * @param $name * The name of the item for which the path is requested. + * @param $checkdb + * Allows the database search to be skipped (useful for pre-bootstrap + * checks where configuration paths must still be respected). * * @return * The path to the requested item. */ -function drupal_get_path($type, $name) { - return dirname(drupal_get_filename($type, $name)); +function drupal_get_path($type, $name, $checkdb = TRUE) { + return dirname(drupal_get_filename($type, $name, NULL, $checkdb)); } /**