On a fresh install of Drupal HEAD no themes are enabled, not even Garland.
This came up in #473080: Blocks are not inherited when switching themes.

Comments

webchick’s picture

Just to clarify, you mean that the "Enabled" checkbox is not checked on admin/build/themes, correct?

Because I just did a fresh Drupal install and I do see Garland. :)

tstoeckler’s picture

Right. That's the weird part, that has made me wonder before. Garland is set to "default", even though it's not enabled. Still you see Garland. Very strange.

webchick’s picture

Yeah, very strange. I think that's because variable_get('theme_default') defaults to Garland if it's not set.

tstoeckler’s picture

Because I would think this is something that should be placed inside of install profiles (so that an install profile can select a different default theme) I just checked default.profile but there is no such thing as an explicit enabling of themes there. There is a hook_profile_modules(); maybe there should be a hook_profile_themes() where you can set which themes to enable and which to default. Have no clue about the implementation, but it IMO it makes sense from a conceptual POV.

webchick’s picture

Wellll...

Ideally, I think I'd rather see install profiles move more towards being module-like (with .info files and the like) rather than adding more special-casing.

It seems like where this ought to be fixed is wherever the theme registry data gets built. I thought that would be http://api.drupal.org/api/function/drupal_theme_rebuild/7, but that's not quite right. http://api.drupal.org/api/function/_theme_load_registry/7 maybe?

kprmca’s picture

i didnt think its a bug

johnalbin’s picture

"No enabled theme" caused all sorts of problems with block settings in D6. If there was no enabled theme, all blocks got disabled during update.php as I recall. So that's definitely something we want to avoid in D7.

johnalbin’s picture

Status: Active » Fixed

I just installed a fresh D7 and it looks like this has been fixed. Garland is enabled and the default theme upon installation.

Closing…

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.