diff --git a/addons/mobile/classes/mhtml.class.php b/addons/mobile/classes/mhtml.class.php
index b90dbc1c3..fc5c1afa8 100644
--- a/addons/mobile/classes/mhtml.class.php
+++ b/addons/mobile/classes/mhtml.class.php
@@ -44,7 +44,7 @@
}
/**
- * @brief 버튼을 출력함
+ * @brief 버튼을 출력함
**/
function printBtn() {
if($this->nextUrl) {
@@ -55,6 +55,14 @@
$url = $this->prevUrl;
printf('%s
%s', $url->url, $url->text, "\n");
}
+ // 언어선택
+ if(!parent::isLangChange()){
+ $url = getUrl('','lcm','1','sel_lang',Context::getLangType(),'return_uri',Context::get('current_url'));
+ printf('%s
%s', $url, 'Language : '.Context::getLang('select_lang'), "\n");
+ }
+ else {
+ printf('%s
%s', Context::get('return_uri'), Context::getLang('lang_return'), "\n");
+ }
if($this->upperUrl) {
$url = $this->upperUrl;
printf('%s', $url->url, $url->text, "\n");
@@ -63,9 +71,6 @@
$url = $this->homeUrl;
printf('%s
%s', $url->text, $url->url, $url->text, "\n");
}
- // 언어선택
- $url = getUrl('','lcm','1','sel_lang',Context::getLangType(),'return_uri',Context::get('current_url'));
- printf('%s
%s', $url, 'Language : '.Context::getLang('select_lang'), "\n");
}
// 푸터 정보를 출력
diff --git a/addons/mobile/classes/mobile.class.php b/addons/mobile/classes/mobile.class.php
index 33816b151..cdbf7ee71 100644
--- a/addons/mobile/classes/mobile.class.php
+++ b/addons/mobile/classes/mobile.class.php
@@ -177,6 +177,7 @@
* 모바일 브라우저가 아닐 경우 null return
**/
function getBrowserType() {
+ if(Context::get('smartphone')) return null;
// 브라우저 타입을 판별
$browserAccept = $_SERVER['HTTP_ACCEPT'];
$userAgent = $_SERVER['HTTP_USER_AGENT'];
@@ -540,11 +541,6 @@
}
}
- $obj = null;
- $obj['link'] = $obj['text'] = Context::getLang('lang_return');
- $obj['href'] = Context::get('return_uri');
- $childs[] = $obj;
-
$this->setChilds($childs);
$this->display();
diff --git a/addons/mobile/classes/wml.class.php b/addons/mobile/classes/wml.class.php
index 28913ba55..05f8bbbcb 100644
--- a/addons/mobile/classes/wml.class.php
+++ b/addons/mobile/classes/wml.class.php
@@ -49,7 +49,7 @@
}
/**
- * @brief 버튼을 출력함
+ * @brief 버튼을 출력함
**/
function printBtn() {
if($this->nextUrl) {
@@ -60,6 +60,14 @@
$url = $this->prevUrl;
printf('%s', $url->text, $url->url, "\n");
}
+ // 언어선택
+ if(!parent::isLangChange()){
+ $url = getUrl('','lcm','1','sel_lang',Context::getLangType(),'return_uri',Context::get('current_url'));
+ printf('%s', 'Language : '.Context::getLang('select_lang'), $url, "\n");
+ }
+ else {
+ printf('%s', Context::getLang('lang_return'), Context::get('return_uri'), "\n");
+ }
if($this->homeUrl) {
$url = $this->homeUrl;
printf('%s', $url->text, $url->url, "\n");
@@ -68,8 +76,6 @@
$url = $this->upperUrl;
printf('%s', $url->text, $url->url, "\n");
}
- $url = getUrl('','lcm','1','sel_lang',Context::getLangType(),'return_uri',Context::get('current_url'));
- printf('%s', 'Language : '.Context::getLang('select_lang'), $url, "\n");
}
// 푸터 정보를 출력