
Originally Posted by
yaritai
Just wanted to add that since the session display mode is not set unless clicking the switches, I think the if statements should be changed to:
Basically I just added $_SESSION['display_mode']==''. This would now allow the view to change for those who are using the switches. These changes should also be used in places where the mobile detect is using this same if statement structure. I have not looked at what files are affected but do recall other files that use it to call specific files/code.
Without the changes above, the switches would not do anything as the addition of the 2.0 code workaround would always override the switch.