X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FTheme.php;h=ff3265c90aea3afe1e13d724cbaa5b779eabf642;hb=e80d68ba53776bed047d897f52db7e25b35a479d;hp=bf3e3418a0908778546c9423559c2f9b2ec1c03a;hpb=af88c2daa34e39cb6430abf64d0648665bfeb9cd;p=friendica.git diff --git a/src/Core/Theme.php b/src/Core/Theme.php index bf3e3418a0..ff3265c90a 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -1,7 +1,22 @@ . + * */ namespace Friendica\Core; @@ -19,7 +34,7 @@ class Theme { public static function getAllowedList() { - $allowed_themes_str = Config::get('system', 'allowed_themes'); + $allowed_themes_str = DI::config()->get('system', 'allowed_themes'); $allowed_themes_raw = explode(',', str_replace(' ', '', $allowed_themes_str)); $allowed_themes = []; if (count($allowed_themes_raw)) { @@ -36,7 +51,7 @@ class Theme public static function setAllowedList(array $allowed_themes) { - Config::set('system', 'allowed_themes', implode(',', array_unique($allowed_themes))); + DI::config()->set('system', 'allowed_themes', implode(',', array_unique($allowed_themes))); } /**