diff options
author | friendica <info@friendica.com> | 2012-02-15 14:13:20 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-15 14:13:20 -0800 |
commit | c965074e5343bf97a8d077e1dc00384f36f90acc (patch) | |
tree | c7b9545accad1fd1ee7ea5e98e6bbf6067ff2280 /mod/settings.php | |
parent | 18b307f9830b99a7f8b44db648740945de9b89af (diff) | |
parent | 16f00cb73b4d9acbe15e636b3ab69f81c793a6c7 (diff) | |
download | volse-hubzilla-c965074e5343bf97a8d077e1dc00384f36f90acc.tar.gz volse-hubzilla-c965074e5343bf97a8d077e1dc00384f36f90acc.tar.bz2 volse-hubzilla-c965074e5343bf97a8d077e1dc00384f36f90acc.zip |
Merge branch 'pull'
Diffstat (limited to 'mod/settings.php')
-rwxr-xr-x | mod/settings.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/settings.php b/mod/settings.php index b4cd2e608..57a4e6db0 100755 --- a/mod/settings.php +++ b/mod/settings.php @@ -734,8 +734,11 @@ function settings_content(&$a) { if($files) { foreach($files as $file) { $f = basename($file); - $theme_name = ((file_exists($file . '/experimental')) ? sprintf("%s - \x28Experimental\x29", $f) : $f); - $themes[$f]=$theme_name; + $is_experimental = file_exists($file . '/experimental'); + if (!$is_experimental or ($is_experimental && (get_config('experimentals','exp_themes')==1 or get_config('experimentals','exp_themes')===false))){ + $theme_name = (($is_experimental) ? sprintf("%s - \x28Experimental\x29", $f) : $f); + $themes[$f]=$theme_name; + } } } $theme_selected = (!x($_SESSION,'theme')? $default_theme : $_SESSION['theme']); |