diff --git a/src/Manage.php b/src/Manage.php index a536d1b..3da5c8b 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -113,7 +113,7 @@ class Manage extends dcNsProcess } } } - dcCore::app()->blog->settings->get(Core::id())->put('preferences', serialize($preferences), 'string', null, true, true); + dcCore::app()->blog->settings->get(Core::id())->put('preferences', json_encode($preferences), 'string', null, true, true); dcAdminNotices::addSuccessNotice(__('Configuration successfully updated')); return true; @@ -220,20 +220,19 @@ class Manage extends dcNsProcess return; } - $bc = empty($_REQUEST['config']) ? - (self::$type == 'theme' ? __('Themes actions') : __('Plugins actions')) : - __('Configure module'); + dcPage::openModule( + Core::name(), + dcPage::jsModuleLoad(Core::id() . '/js/index.js') . + (self::$action === null ? '' : self::$action->header()) + ); - echo '
' . form::combo('type', [__('Plugins') => 'plugin', __('Themes') => 'theme'], self::$type) . ' ' . '' . - form::hidden('p', 'improve') . '
' . + form::hidden('p', Core::id()) . '' . ''; $combo_modules = self::comboModules();