X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FTheme.php;h=61798a3969d99e7345dc2f0559c9018db488bc96;hb=295d90d496a56217383481fa7a0153e0ac48e38a;hp=ae389515c2fbbf57b823e4b02ca05550d9e4a44a;hpb=9227aab83749fcb69525a914369a6819294fb53f;p=friendica.git diff --git a/src/Core/Theme.php b/src/Core/Theme.php index ae389515c2..61798a3969 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -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; } }