mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:02:53 +00:00
Themese are now saved just once
This commit is contained in:
parent
2f2480d88d
commit
7ebd5e6b15
1 changed files with 2 additions and 2 deletions
|
@ -31,12 +31,12 @@ class Theme
|
|||
}
|
||||
}
|
||||
|
||||
return $allowed_themes;
|
||||
return array_unique($allowed_themes);
|
||||
}
|
||||
|
||||
public static function setAllowedList(array $allowed_themes)
|
||||
{
|
||||
Config::set('system', 'allowed_themes', implode(',', $allowed_themes));
|
||||
Config::set('system', 'allowed_themes', implode(',', array_unique($allowed_themes)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue