Changeset 3730:5c45a5df9a59 for plugins/dcLegacyEditor/index.php
- Timestamp:
- 03/08/18 17:58:39 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/index.php
r2855 r3730 11 11 # -- END LICENSE BLOCK ----------------------------------------- 12 12 13 if (!defined('DC_CONTEXT_ADMIN')) { return;}13 if (!defined('DC_CONTEXT_ADMIN')) {return;} 14 14 15 15 $is_admin = $core->auth->check('admin,contentadmin', $core->blog->id) || $core->auth->isSuperAdmin(); … … 20 20 if (!empty($_POST['saveconfig'])) { 21 21 try { 22 $dclegacyeditor_active = (empty($_POST['dclegacyeditor_active'])) ?false:true;22 $dclegacyeditor_active = (empty($_POST['dclegacyeditor_active'])) ? false : true; 23 23 $core->blog->settings->dclegacyeditor->put('active', $dclegacyeditor_active, 'boolean'); 24 24 25 25 dcPage::addSuccessNotice(__('The configuration has been updated.')); 26 26 http::redirect($p_url); 27 } catch (Exception $e) {28 27 } catch (Exception $e) { 28 $core->error->add($e->getMessage()); 29 29 } 30 30 } 31 31 32 include dirname(__FILE__).'/tpl/index.tpl'; 33 32 include dirname(__FILE__) . '/tpl/index.tpl';
Note: See TracChangeset
for help on using the changeset viewer.