From 79747faf807c4b3ba275224d74de5ee7ebd39e28 Mon Sep 17 00:00:00 2001 From: ovclas Date: Wed, 26 Oct 2011 01:50:56 +0000 Subject: [PATCH] editor module config change from procfilter to post git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9746 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/editor.controller.php | 7 ++++++- modules/editor/tpl/editor_module_config.html | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/editor/editor.controller.php b/modules/editor/editor.controller.php index 8399edb37..443005077 100644 --- a/modules/editor/editor.controller.php +++ b/modules/editor/editor.controller.php @@ -144,7 +144,12 @@ } $this->setError(-1); - $this->setMessage('success_updated'); + $this->setMessage('success_updated', 'info'); + if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) { + $returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispBoardAdminContent'); + $this->setRedirectUrl($returnUrl); + return; + } } /** diff --git a/modules/editor/tpl/editor_module_config.html b/modules/editor/tpl/editor_module_config.html index 25ebd2f1a..679ae3b46 100644 --- a/modules/editor/tpl/editor_module_config.html +++ b/modules/editor/tpl/editor_module_config.html @@ -1,6 +1,7 @@ -
+ +

{$lang->editor}