? sites/default/files ? sites/default/settings.php ? sites/default/themes Index: modules/system/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.module,v retrieving revision 1.694 diff -u -p -r1.694 system.module --- modules/system/system.module 16 May 2009 18:34:23 -0000 1.694 +++ modules/system/system.module 17 May 2009 09:48:05 -0000 @@ -1132,11 +1132,7 @@ function system_theme_default() { 'main_menu', 'secondary_menu', ), - 'stylesheets' => array( - 'all' => array('style.css') - ), - 'scripts' => array('script.js'), - 'screenshot' => 'screenshot.png', + 'screenshot' => '', 'php' => DRUPAL_MINIMUM_PHP, ); } @@ -1226,17 +1222,21 @@ function _system_theme_data() { // Give the stylesheets proper path information. $pathed_stylesheets = array(); - foreach ($themes[$key]->info['stylesheets'] as $media => $stylesheets) { - foreach ($stylesheets as $stylesheet) { - $pathed_stylesheets[$media][$stylesheet] = dirname($themes[$key]->filepath) . '/' . $stylesheet; + if (isset($themes[$key]->info['stylesheets'])) { + foreach ($themes[$key]->info['stylesheets'] as $media => $stylesheets) { + foreach ($stylesheets as $stylesheet) { + $pathed_stylesheets[$media][$stylesheet] = dirname($themes[$key]->filepath) . '/' . $stylesheet; + } } } $themes[$key]->info['stylesheets'] = $pathed_stylesheets; // Give the scripts proper path information. $scripts = array(); - foreach ($themes[$key]->info['scripts'] as $script) { - $scripts[$script] = dirname($themes[$key]->filepath) . '/' . $script; + if (isset($themes[$key]->info['scripts'])) { + foreach ($themes[$key]->info['scripts'] as $script) { + $scripts[$script] = dirname($themes[$key]->filepath) . '/' . $script; + } } $themes[$key]->info['scripts'] = $scripts; // Give the screenshot proper path information. Index: themes/garland/garland.info =================================================================== RCS file: /cvs/drupal/drupal/themes/garland/garland.info,v retrieving revision 1.6 diff -u -p -r1.6 garland.info --- themes/garland/garland.info 18 Feb 2008 19:19:48 -0000 1.6 +++ themes/garland/garland.info 17 May 2009 09:48:05 -0000 @@ -6,3 +6,4 @@ core = 7.x engine = phptemplate stylesheets[all][] = style.css stylesheets[print][] = print.css +screenshot = screenshot.png \ No newline at end of file Index: themes/garland/minnelli/minnelli.info =================================================================== RCS file: /cvs/drupal/drupal/themes/garland/minnelli/minnelli.info,v retrieving revision 1.8 diff -u -p -r1.8 minnelli.info --- themes/garland/minnelli/minnelli.info 18 Feb 2008 19:19:49 -0000 1.8 +++ themes/garland/minnelli/minnelli.info 17 May 2009 09:48:05 -0000 @@ -5,3 +5,4 @@ version = VERSION core = 7.x base theme = garland stylesheets[all][] = minnelli.css +screenshot = screenshot.png \ No newline at end of file Index: themes/stark/stark.info =================================================================== RCS file: /cvs/drupal/drupal/themes/stark/stark.info,v retrieving revision 1.1 diff -u -p -r1.1 stark.info --- themes/stark/stark.info 30 Jan 2009 23:06:23 -0000 1.1 +++ themes/stark/stark.info 17 May 2009 09:48:05 -0000 @@ -6,3 +6,4 @@ version = VERSION core = 7.x engine = phptemplate stylesheets[all][] = layout.css +screenshot = screenshot.png \ No newline at end of file