]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Theme.php
Move mod/toggle_mobile to src/Module/ToggleMobile
[friendica.git] / src / Core / Theme.php
index ae389515c2fbbf57b823e4b02ca05550d9e4a44a..61798a3969d99e7345dc2f0559c9018db488bc96 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) {
@@ -177,6 +177,7 @@ class Theme
 
                        return true;
                } catch (\Exception $e) {
+                       Logger::error('Theme installation failed', ['theme' => $theme, 'error' => $e->getMessage()]);
                        return false;
                }
        }