aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-22 16:24:29 -0700
committerfriendica <info@friendica.com>2012-04-22 16:24:29 -0700
commit00cb7f9efb4826a6ad5c0791f26bc5e8db644f77 (patch)
treef7250cf394b6e062cee09d03e59f143cfde3c447 /mod
parentd340b80094cbaf33f3989422240be929741b0ff8 (diff)
downloadvolse-hubzilla-00cb7f9efb4826a6ad5c0791f26bc5e8db644f77.tar.gz
volse-hubzilla-00cb7f9efb4826a6ad5c0791f26bc5e8db644f77.tar.bz2
volse-hubzilla-00cb7f9efb4826a6ad5c0791f26bc5e8db644f77.zip
don't allow non-existent themes as choices
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 721468437..8c8b3062d 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -696,8 +696,8 @@ function settings_content(&$a) {
$allowed_themes_raw = explode(',',$allowed_themes_str);
$allowed_themes = array();
if(count($allowed_themes_raw))
- foreach($allowed_themes_raw as $x)
- if(strlen(trim($x)))
+ foreach($allowed_themes_raw as $x)
+ if(strlen(trim($x)) && is_dir("view/theme/$x"))
$allowed_themes[] = trim($x);