mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
기본 사이트의 DB상의 Domain 값과 ./files/config/db.config.php의 default_url 값이 다를 경우 db.config.php 파일의 default_url을 site_module_info->domain으로 대체하도록 하여 서버 이전 또는 url변경시 db.config.php 파일의 내용 변경으로 사이트가 이상없이 동작하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6771 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
592e99f929
commit
0ea5f370d8
1 changed files with 5 additions and 0 deletions
|
|
@ -85,6 +85,11 @@
|
|||
// site_module_info를 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$site_module_info = $oModuleModel->getDefaultMid();
|
||||
// site_module_info의 site_srl = 0 일 경우 db_config의 default_url과 비교
|
||||
if($site_module_info->site_srl == 0 && $site_module_info->domain != $this->db_info->default_url) {
|
||||
$site_module_info->domain = $this->db_info->default_url;
|
||||
}
|
||||
|
||||
Context::set('site_module_info', $site_module_info);
|
||||
|
||||
if($site_module_info->site_srl && isSiteID($site_module_info->vid)) Context::set('vid', $site_module_info->vid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue