Closed (fixed)
Project:
Drupal core
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Dec 2005 at 01:00 UTC
Updated:
18 Jan 2006 at 09:40 UTC
Jump to comment: Most recent file
The main theme is usually disabled when a style is used. This prevents the theme from actually loading.
This patch adds a special loading for the theme.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | list_themes_1.patch | 1.39 KB | drumm |
| #2 | list_themes_0.patch | 1.49 KB | drumm |
| theme.inc_4.diff | 664 bytes | drumm |
Comments
Comment #1
dries commentedThe problem can be reproduces as follows:
This patch works around a problem with theme settings not being saved correctly. It fixes the symptom, not the problem. Furthermore, it potentially adds a database query to every page load, making it an expensive solution. I'd like to see this investigated some more.
Comment #2
drummHere is an alternative patch which partially revents http://drupal.org/node/29002 and loads information on all the themes.
Comment #3
drummComment #4
dries commentedCode looks forced to me: you force yourself to use a function, theme_list(), that doesn't do what you want it to do. What is wrong with doing a query in system_user() and getting the results in the conventional way?
Comment #5
drummThe theme data has already been loaded from the database, so it doesn't make much sense to query for the same thing again. This isn't executed much at all so there really isn't a speed issue either way. I'm mostly just going with how the code was before.
Comment #6
drummHere is basically the same patch, but with less code.
Comment #7
dries commentedCommitted. Thanks.
Comment #8
(not verified) commented