Browse files

added lines 61-64

  • Loading branch information...
1 parent 11d5e48 commit 10fd93d2f23f109bfbe4d6ebbb21a548518240de @surfjedi committed Apr 28, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 code/MobileBrowserDetector.php
View
6 code/MobileBrowserDetector.php
@@ -29,7 +29,7 @@ public static function is_ipad() {
return (preg_match('/(ipad)/i', $_SERVER['HTTP_USER_AGENT'])) ? true : false;
}
-
+
public static function is_opera_mini() {
return (stripos($_SERVER['HTTP_USER_AGENT'], 'opera mini') !== false) ? true : false;
}
@@ -58,6 +58,10 @@ public static function is_mobile() {
$accept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : '';
switch(true) {
+ case(self::is_ipad()):
+ $isMobile = true;
+
+ break;
case(self::is_iphone()):
$isMobile = true;
break;

0 comments on commit 10fd93d

Please sign in to comment.