Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2007 at 06:12 UTC
Updated:
13 Sep 2007 at 16:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickBtw, looks like this was introduced in the JS aggregation patch.
Comment #2
xqus commentedWell, here is a simple fix.
Just added the inclusion of includes/file.inc in the drupal_maintenance_theme() function.
A maybe better fix would be to change the drupal_get_js() function to take an argument to disable the JS preprocessing when the database is not available.
Comment #3
xqus commentedHere is a different approach. It adds some more checks to the drupal_get_js() function.
Comment #4
RobRoy commentedVerified that both patches fix the problem. Just depends on which one is more elegant probably as I think they'll both perform the same. I'm slightly more a fan of #3.
This is a re-roll of patch #2 with trailing spaces removed.
Comment #5
RobRoy commentedHere is a re-roll of #3 which I slightly prefer. This abides by coding standards and includes a comment to boot. Gabor, both these patches work, guess it's just up to you which you prefer.
Comment #6
gábor hojtsyOK, committed #4, as I think we are better off with including what we need then having special cases for all functions we might not have. The maintenance theme could be any complex. Thanks.
Comment #7
(not verified) commented