ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: TE on April 25, 2016, 06:54:45 am

Title: [1.1] Can't select variant
Post by: TE on April 25, 2016, 06:54:45 am
Just wanted to rebuild my dev environment and found an odd bug.. I've cloned the developement branch and installed ElkArte.
The option to switch a variant isn't there..
Any ideas where to look at? btw, It's fine one this site...
Title: Re: [1.1] Can't select variant
Post by: emanuele on April 25, 2016, 07:52:41 am
Where?
In the admin panel or in the profile?

I can see them fine in both places.

Generally speaking, the variants are as before, defined in index.template.php, function template_init:
Code: [Select]
		// This is used for the color variants.
'theme_variants' => array('light', 'besocial'),
Title: Re: [1.1] Can't select variant
Post by: TE on April 25, 2016, 09:11:10 am
Quote from: emanuele – In the admin panel or in the profile?
Tried to debug that bug .. $settings['theme_variants'] is set, but the dropdown for switching the variant in both areas isn't visible....
Quote from: emanuele – I can see them fine in both places.
Fresh install? It's fine on this site but it's broken on my fresh installed ElkArte 1.1 ..
Title: Re: [1.1] Can't select variant
Post by: emanuele on April 25, 2016, 09:40:24 am
http://www.elkarte.it/elk1.1/index.php
It's a relatively fresh install, a month or so ago, and I can see both of them.

You can have a look in ManageThemes.controller.php if $context['theme_variants'] is ever set.