]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Theme.php
Remove duplicate profile_uid key in App->profile array
[friendica.git] / src / Core / Theme.php
index bf3e3418a0908778546c9423559c2f9b2ec1c03a..76149b7589acae9fc829a2f984b41bb550d8e507 100644 (file)
@@ -19,7 +19,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 +36,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)));
        }
 
        /**