1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-04 05:07:44 +02:00

v2.1.2 fix error when change theme (string stored instead of array in themesettings/pluginsettings))

This commit is contained in:
trendschau
2024-01-30 21:05:12 +01:00
parent 66cf087957
commit 31df89f882

View File

@@ -73,13 +73,13 @@ class ControllerApiSystemExtensions extends Controller
if($params['type'] == 'plugins')
{
$pluginsettings = $this->settings['plugins'][$params['name']] ?? $params['name'];
$pluginsettings = $this->settings['plugins'][$params['name']] ?? [];
$pluginsettings['active'] = $params['checked'];
$updatedSettings = $settings->updateSettings($pluginsettings, 'plugins', $params['name']);
}
elseif($params['type'] == 'themes')
{
$themesettings = $this->settings['themes'][$params['name']] ?? $params['name'];
$themesettings = $this->settings['themes'][$params['name']] ?? [];
$updatedSettings = $settings->updateSettings($themesettings, 'themes', $params['name']);
if($updatedSettings)
{