From a57988fd6af4a92c0ffef9821eac1913f0fb9477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AE=E3=81=B6?= Date: Thu, 26 Jul 2018 14:05:17 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#194=20=E3=82=AC=E3=83=A9=E3=82=B1?= =?UTF-8?q?=E3=83=BC=E3=82=92=E7=84=A1=E5=8A=B9=E3=81=AB=E3=81=99=E3=82=8B?= =?UTF-8?q?=20=E3=81=A8=E3=82=8A=E3=81=82=E3=81=88=E3=81=9A=E3=82=B3?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=82=A2=E3=82=A6=E3=83=88=E3=81=A7?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/class/SC_Display.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/class/SC_Display.php b/data/class/SC_Display.php index 9352860f2d..a5a2042596 100644 --- a/data/class/SC_Display.php +++ b/data/class/SC_Display.php @@ -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;