mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
위젯수정시 스킨 선택 예외 처리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5954 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a106001d53
commit
844931320f
1 changed files with 4 additions and 2 deletions
|
|
@ -99,7 +99,9 @@
|
|||
function procWidgetGenerateCodeInPage() {
|
||||
$widget = Context::get('selected_widget');
|
||||
if(!$widget) return new Object(-1,'msg_invalid_request');
|
||||
if(!Context::get('skin')) return new Object(-1,Context::getLang('msg_widget_skin_is_null'));
|
||||
|
||||
if(!in_array($widget,array('widgetBox','widgetContent')) && !Context::get('skin')) return new Object(-1,Context::getLang('msg_widget_skin_is_null'));
|
||||
|
||||
$attribute = $this->arrangeWidgetVars($widget, Context::getRequestVars(), $vars);
|
||||
|
||||
// 결과물을 구함
|
||||
|
|
@ -263,7 +265,7 @@
|
|||
$oModuleModel = &getModel('module');
|
||||
$page_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
if(!$page_info->module_srl || $page_info->module != 'page') $err++;
|
||||
|
||||
|
||||
if($err > 1) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
// 권한 체크
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue