diff --git a/common/js/common.js b/common/js/common.js index 08b54b824..f30b255b1 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -8,9 +8,9 @@ * @brief location.href에서 특정 key의 값을 return **/ String.prototype.getQuery = function(key) { - var idx = current_url.indexOf('?'); + var idx = this.indexOf('?'); if(idx == -1) return null; - var query_string = current_url.substr(idx+1, current_url.length); + var query_string = this.substr(idx+1, this.length); var args = {} query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; }); @@ -24,12 +24,12 @@ String.prototype.getQuery = function(key) { * @brief location.href에서 특정 key의 값을 return **/ String.prototype.setQuery = function(key, val) { - var idx = current_url.indexOf('?'); - var uri = current_url; + var idx = this.indexOf('?'); + var uri = this; uri = uri.replace(/#$/,''); if(idx != -1) { - uri = current_url.substr(0, idx); - var query_string = current_url.substr(idx+1, current_url.length); + uri = this.substr(0, idx); + var query_string = this.substr(idx+1, this.length); var args = new Array(); query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; }); diff --git a/modules/blog/blog.controller.php b/modules/blog/blog.controller.php index 31fa1fd5a..89714e4ac 100644 --- a/modules/blog/blog.controller.php +++ b/modules/blog/blog.controller.php @@ -344,6 +344,8 @@ return $output; } + $this->setLayoutPath('./common/tpl'); + $this->setLayoutFile('default_layout.html'); $this->setTemplatePath($this->module_path.'tpl'); $this->setTemplateFile("top_refresh.html"); } diff --git a/modules/blog/blog.view.php b/modules/blog/blog.view.php index df45a2d83..c2e0a073f 100644 --- a/modules/blog/blog.view.php +++ b/modules/blog/blog.view.php @@ -75,7 +75,7 @@ } // 스킨 경로 구함 - $template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin); + $template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin); $this->setTemplatePath($template_path); // rss url diff --git a/modules/board/board.controller.php b/modules/board/board.controller.php index bbf40e231..c960db04b 100644 --- a/modules/board/board.controller.php +++ b/modules/board/board.controller.php @@ -373,6 +373,8 @@ $oModuleController = &getController('module'); $oModuleController->updateModuleSkinVars($module_srl, $skin_vars); + $this->setLayoutPath('./common/tpl'); + $this->setLayoutFile('default_layout.html'); $this->setTemplatePath($this->module_path.'tpl'); $this->setTemplateFile("top_refresh.html"); } diff --git a/modules/board/board.view.php b/modules/board/board.view.php index f054ac65f..0d5b9f294 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -73,7 +73,7 @@ $this->page_count = $this->module_info->page_count?$this->module_info->page_count:10; // 스킨 템플릿 경로 지정 - $template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin); + $template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin); $this->setTemplatePath($template_path); // rss url