mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#18592109 레이아웃 저장시 메인 페이지로 이동하는 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7121 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
17b757f4e2
commit
46a95d2aa7
3 changed files with 21 additions and 3 deletions
|
|
@ -208,7 +208,9 @@
|
|||
function procLayoutAdminCodeUpdate() {
|
||||
$layout_srl = Context::get('layout_srl');
|
||||
$code = Context::get('code');
|
||||
$code_css = Context::get('code_css');
|
||||
$code_css = Context::get('code_css');
|
||||
$return_url = Context::get('_return_url');
|
||||
$is_post = (Context::getRequestMethod() == 'POST');
|
||||
if(!$layout_srl || !$code) return new Object(-1, 'msg_invalid_request');
|
||||
|
||||
$oLayoutModel = &getModel('layout');
|
||||
|
|
@ -217,7 +219,13 @@
|
|||
|
||||
$layout_css_file = $oLayoutModel->getUserLayoutCss($layout_srl);
|
||||
FileHandler::writeFile($layout_css_file, $code_css);
|
||||
$this->setMessage('success_updated');
|
||||
|
||||
if($is_post) {
|
||||
if(!$return_url) $return_url = getUrl('module','admin','act','dispLayoutAdminEdit', 'layout_srl', $layout_srl);
|
||||
header('Location: '.$return_url);
|
||||
} else {
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue