mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
don't allow non-existent themes as choices
This commit is contained in:
parent
d340b80094
commit
00cb7f9efb
3 changed files with 52 additions and 151 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue