Commit ae84c08e authored by webchick's avatar webchick

#334238 follow-up by Dave Reid: Fixed detection of core modules and themes in update.module.

parent 598e7392
......@@ -180,12 +180,7 @@ function update_get_project_name($file) {
if (isset($file->info['project'])) {
$project_name = $file->info['project'];
}
elseif (isset($file->info['package']) && (strpos($file->info['package'], 'Core') !== FALSE)) {
$project_name = 'drupal';
}
elseif (in_array($file->name, array('garland', 'minnelli', 'stark'))) {
// Unfortunately, there's no way to tell if a theme is part of core,
// so we must hard-code a list here.
elseif (isset($file->info['package']) && (strpos($file->info['package'], 'Core') === 0)) {
$project_name = 'drupal';
}
return $project_name;
......
; $Id$
name = Garland
description = Tableless, recolorable, multi-column, fluid width theme.
package = Core
version = VERSION
core = 7.x
engine = phptemplate
......
; $Id$
name = Minnelli
description = Tableless, recolorable, multi-column, fixed width theme.
package = Core
version = VERSION
core = 7.x
base theme = garland
......
; $Id$
name = Seven
description = A simple one-column, tableless, fluid width administration theme.
core = 7.x
package = Core
version = VERSION
core = 7.x
engine = phptemplate
stylesheets[screen][] = reset.css
stylesheets[screen][] = style.css
......
; $Id$
name = Stark
description = This theme demonstrates Drupal's default HTML markup and CSS styles. To learn how to build your own theme and override Drupal's default code, you should start reading the <a href="http://drupal.org/theme-guide">Theming Guide</a>.
package = Core
version = VERSION
core = 7.x
engine = phptemplate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment