aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-05 18:05:25 -0700
committerFriendika <info@friendika.com>2011-06-05 18:05:25 -0700
commitedbad772bacb25e23f4a8e26379e26b13e5765cd (patch)
tree45384f74d50e19539b81fb0d7362f36707576675 /mod
parentc4cec593ba4551069d442bf46d87bb0c952ebdab (diff)
downloadvolse-hubzilla-edbad772bacb25e23f4a8e26379e26b13e5765cd.tar.gz
volse-hubzilla-edbad772bacb25e23f4a8e26379e26b13e5765cd.tar.bz2
volse-hubzilla-edbad772bacb25e23f4a8e26379e26b13e5765cd.zip
add flag for experimental themes
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 86d1ae015..f976bdf8f 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -431,7 +431,8 @@ function settings_content(&$a) {
$f = basename($file);
$selected = (($f == $_SESSION['theme']) || ($f === $default_theme && (! x($_SESSION,'theme')))
? ' selected="selected" ' : '' );
- $theme_selector .= '<option val="' . basename($file) . '"' . $selected . '>' . basename($file) . '</option>';
+ $theme_name = ((file_exists($file . '/experimental')) ? sprintf("%s - \x28Experimental\x29", $f) : $f);
+ $theme_selector .= '<option val="' . $f . '"' . $selected . '>' . $theme_name . '</option>';
}
}