From a2d44fa17a7a8875a5f1755c031e5cb46b37f505 Mon Sep 17 00:00:00 2001 From: ngleader Date: Tue, 9 Nov 2010 01:43:44 +0000 Subject: [PATCH] =?UTF-8?q?#19249376=20=C3=AB=C2=8F=C2=84=C3=AB=C2=A9?= =?UTF-8?q?=C2=94=C3=AC=C2=9D=C2=B8=C3=AC=C2=9C=C2=BC=C3=AB=C2=A1=C2=9C=20?= =?UTF-8?q?=C3=AA=C2=B0=C2=80=C3=AC=C2=83=C2=81=C3=AC=C2=82=C2=AC=C3=AC?= =?UTF-8?q?=C2=9D=C2=B4=C3=AD=C2=8A=C2=B8=20=C3=AC=C2=83=C2=9D=C3=AC=C2=84?= =?UTF-8?q?=C2=B1=C3=AC=C2=8B=C2=9C=20=C3=AC=C2=98=C2=81=C3=AB=C2=AC=C2=B8?= =?UTF-8?q?=C3=AC=C2=9D=C2=80=20=C3=AC=C2=86=C2=8C=C3=AB=C2=AC=C2=B8=C3=AC?= =?UTF-8?q?=C2=9E=C2=90=C3=AB=C2=A1=C2=9C=C3=AB=C2=A7=C2=8C=20=C3=AC=C2=9E?= =?UTF-8?q?=C2=85=C3=AB=C2=A0=C2=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7816 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/module/module.controller.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/module/module.controller.php b/modules/module/module.controller.php index 99b307adb..7d884e513 100644 --- a/modules/module/module.controller.php +++ b/modules/module/module.controller.php @@ -158,7 +158,10 @@ if(isSiteID($domain)) { $oModuleModel = &getModel('module'); if($oModuleModel->isIDExists($domain, 0)) return new Object(-1,'msg_already_registed_vid'); + }else{ + $domain = strtolower($domain); } + $args->site_srl = getNextSequence(); $args->domain = preg_replace('/\/$/','',$domain); $args->index_module_srl = $index_module_srl; @@ -183,6 +186,11 @@ $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'); + + if(!isSiteID($args->domain)) { + $args->domain = strtolower($args->domain); + } + } $output = executeQuery('module.updateSite', $args); return $output;