Won't work on sites where DRUPAL_ANONYMOUS_RID and DRUPAL_AUTHENTICATED_RID are translated

Eric_A - June 2, 2009 - 14:13
Project:Role Theme Switcher
Version:6.x-1.3
Component:Code
Category:bug report
Priority:critical
Assigned:tiutiun
Status:closed
Description

The configuration uses translated role names for these roles. (by depending on user_roles()).
The function user_load() however loads the untranslated strings for these role names.
When trying to set a theme in hook_init there will not be a match.

To solve this issue I can see 3 options right now:
1) the behaviours of user_load() and user_roles() are changed in core to be more consistent with each other;
2) this module adapts to the current inconsistent behaviour;
3) this module decouples itself from this behaviour by using role keys instead of role names. (upgrade path needed)

#1

Eric_A - June 2, 2009 - 14:15

upgrade => update

#2

tiutiun - June 2, 2009 - 15:17
Assigned to:Anonymous» tiutiun

#3

tiutiun - July 3, 2009 - 15:06
Status:active» fixed

Fixed in version 6-1.4

#4

System Message - July 17, 2009 - 15:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.