theme_get_setting() tries to use a global variable which doesn't exist anymore

David_Rothstein - November 5, 2009 - 21:45
Project:Drupal
Version:7.x-dev
Component:theme system
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

People keep trying to slip stuff referring to the global $custom_theme variable into Drupal even though that global variable no longer exists... probably it's related to the fact that we haven't gotten around to documenting the change from #553944: Allow modules to specify per-page custom themes in hook_menu() yet :)

In this case, I'm not even sure what the code was trying to use it for. Whenever drupal_theme_initialize() is called, the global $theme_key gets set to the actual theme that is going to be used for the current page, so as far as I can tell, that is all we would ever need to check here.

AttachmentSizeStatusTest resultOperations
get-rid-of-custom-theme-global.patch717 bytesIdleFailed: 14684 passes, 9 fails, 336 exceptionsView details | Re-test

#1

System Message - November 8, 2009 - 20:00
Status:needs review» needs work

The last submitted patch failed testing.

#2

David_Rothstein - November 11, 2009 - 16:55
Status:needs work» needs review

I'm pretty sure those test failures aren't for real. Resubmitting.

AttachmentSizeStatusTest resultOperations
get-rid-of-custom-theme-global.patch717 bytesIdlePassed: 14699 passes, 0 fails, 0 exceptionsView details | Re-test

#3

Dries - November 12, 2009 - 21:07
Status:needs review» fixed

Committed to CVS HEAD. Thanks David.

#4

System Message - November 26, 2009 - 21:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.