Skip to content

Commit

Permalink
Merge pull request #201 from nobuhiko/fix194
Browse files Browse the repository at this point in the history
fix #194 ガラケーを無効にする
  • Loading branch information
Chihiro Adachi authored Aug 3, 2018
2 parents 795ab9c + a57988f commit 8d71efa
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 8d71efa

Please sign in to comment.