mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 18:29:55 +09:00
merge from 1.5.1.8
git-svn-id: http://xe-core.googlecode.com/svn/trunk@10157 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2d3dfe7bc7
commit
90c18a8bb8
42 changed files with 3249 additions and 149 deletions
|
|
@ -235,13 +235,21 @@
|
|||
**/
|
||||
function procLayoutAdminCodeUpdate() {
|
||||
$mode = Context::get('mode');
|
||||
if ($mode == 'reset') return $this->procLayoutAdminCodeReset();
|
||||
if ($mode == 'reset')
|
||||
{
|
||||
return $this->procLayoutAdminCodeReset();
|
||||
}
|
||||
|
||||
$layout_srl = Context::get('layout_srl');
|
||||
$code = Context::get('code');
|
||||
$code_css = Context::get('code_css');
|
||||
$is_post = (Context::getRequestMethod() == 'POST');
|
||||
if(!$layout_srl || !$code) return new Object(-1, 'msg_invalid_request');
|
||||
if(!$layout_srl || !$code || !$is_post)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$code = preg_replace('/<\?.*(\?>)?/sm', '', $code);
|
||||
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_file = $oLayoutModel->getUserLayoutHtml($layout_srl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue