Closed (duplicate)
Project:
Switchtheme
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2008 at 10:10 UTC
Updated:
17 Apr 2008 at 14:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
vikingew commentedand the fix:
changing
variable_set('theme_default', $form_values['custom_theme']);to
variable_set('theme_default', $form_state['values']['custom_theme']);fixes it ;-)
Comment #2
vikingew commentedComment #3
sunIMHO, SwitchTheme should never ever allow users to switch the default theme of a site. This happens exactly in this line.
Instead of fixing this bug, I'd propose to remove the line completely.
The same change is already incorporated in the the patch in #185254: Themes don't switch for anonymous users.
Comment #4
sunMarking as duplicate of #247348: Switchtheme switches the default theme not the users'