Merge pull request #7885 from nupplaphil/bug/7881_allowed_themes
Themes are now saved just once
This commit is contained in:
commit
01b81f7bba
|
@ -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 New Issue
Block a user