aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-02-15 12:47:50 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-02-15 12:47:50 +0100
commit73bee08ac2ce4e89ab365d23f431f5e0c465abd6 (patch)
treeae0b3a7f4aaadd010656d2f6cfae00b85d71f3b1 /mod/settings.php
parentfe3e8ee8547dbb7dab5b756056d688d2b8bfbd5f (diff)
downloadvolse-hubzilla-73bee08ac2ce4e89ab365d23f431f5e0c465abd6.tar.gz
volse-hubzilla-73bee08ac2ce4e89ab365d23f431f5e0c465abd6.tar.bz2
volse-hubzilla-73bee08ac2ce4e89ab365d23f431f5e0c465abd6.zip
enable ajax calendar with $a->config['experimentals']['new_calendar']=1
Diffstat (limited to 'mod/settings.php')
-rwxr-xr-xmod/settings.php7
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']);