]> git.mxchange.org Git - friendica.git/commitdiff
Normalize how we store enabled addons/themes in config value to straight comma-separa...
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 26 Apr 2019 13:11:01 +0000 (09:11 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 2 May 2019 13:52:54 +0000 (09:52 -0400)
src/Core/Addon.php
src/Core/Theme.php

index 2c28c24ee9299c244f3326978f9efecbd91566c4..4dd34eb16f01eab73f1ab9356f9d7b241523c5bb 100644 (file)
@@ -2,6 +2,7 @@
 /**
  * @file src/Core/Addon.php
  */
+
 namespace Friendica\Core;
 
 use Friendica\BaseObject;
@@ -313,7 +314,7 @@ class Addon extends BaseObject
         */
        public static function saveEnabledList()
        {
-               return Config::set('system', 'addon', implode(', ', self::$addons));
+               return Config::set('system', 'addon', implode(',', self::$addons));
        }
 
        /**
index ae389515c2fbbf57b823e4b02ca05550d9e4a44a..37e673e404fd88a301357584a53a8f0ebed3b081 100644 (file)
@@ -20,7 +20,7 @@ class Theme
        public static function getAllowedList()
        {
                $allowed_themes_str = Config::get('system', 'allowed_themes');
-               $allowed_themes_raw = explode(',', $allowed_themes_str);
+               $allowed_themes_raw = explode(',', str_replace(' ', '', $allowed_themes_str));
                $allowed_themes = [];
                if (count($allowed_themes_raw)) {
                        foreach ($allowed_themes_raw as $theme) {