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 |
Jump to:
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
upgrade => update
#2
#3
Fixed in version 6-1.4
#4
Automatically closed -- issue fixed for 2 weeks with no activity.