mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
가상사이트 업데이트시에 도메인과 vid값을 제대로 판별하여 중복되지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6476 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
be23c0bb28
commit
58941cbbe1
1 changed files with 7 additions and 0 deletions
|
|
@ -132,6 +132,13 @@
|
|||
* @brief virtual site 수정
|
||||
**/
|
||||
function updateSite($args) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$site_info = $oModuleModel->getSiteInfo($args->site_srl);
|
||||
if($site_info->domain != $args->domain) {
|
||||
$info = $oModuleModel->getSiteInfoByDomain($args->domain);
|
||||
if($info->site_srl && $info->site_srl != $args->site_srl) return new Object(-1,'msg_already_registed_domain');
|
||||
if(isSiteID($args->domain) && $oModuleModel->isIDExists($args->domain)) return new Object(-1,'msg_already_registed_vid');
|
||||
}
|
||||
$output = executeQuery('module.updateSite', $args);
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue