Skip to content

Commit

Permalink
fix #194 ガラケーを無効にする
Browse files Browse the repository at this point in the history
とりあえずコメントアウトで対応
  • Loading branch information
nobuhiko committed Jul 26, 2018
1 parent 3bda4df commit a57988f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/class/SC_Display.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ public function setView($view)
public static function detectDevice($reset = FALSE)
{
if (is_null(SC_Display_Ex::$device) || $reset) {
$nu = new Net_UserAgent_Mobile();
//$nu = new Net_UserAgent_Mobile();
$su = new SC_SmartphoneUserAgent_Ex();
if ($nu->isMobile()) {
/*if ($nu->isMobile()) {
SC_Display_Ex::$device = DEVICE_TYPE_MOBILE;
} elseif ($su->isSmartphone()) {
} else*/if ($su->isSmartphone()) {
SC_Display_Ex::$device = DEVICE_TYPE_SMARTPHONE;
} else {
SC_Display_Ex::$device = DEVICE_TYPE_PC;
Expand Down

0 comments on commit a57988f

Please sign in to comment.