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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user