Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2009 at 07:34 UTC
Updated:
9 Sep 2009 at 15:00 UTC
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
Comment #1
webchickJust 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. :)
Comment #2
tstoecklerRight. 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.
Comment #3
webchickYeah, very strange. I think that's because variable_get('theme_default') defaults to Garland if it's not set.
Comment #4
tstoecklerBecause 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.
Comment #5
webchickWellll...
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?
Comment #6
kprmca commentedi didnt think its a bug
Comment #8
johnalbin"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.
Comment #9
johnalbinI just installed a fresh D7 and it looks like this has been fixed. Garland is enabled and the default theme upon installation.
Closing…