Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix OS detection - Add iPad & iPhone
  • Loading branch information
cdujeu committed Mar 11, 2015
1 parent 8393b8b commit 959a0c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/core/classes/class.AJXP_Utils.php
Expand Up @@ -1540,8 +1540,10 @@ public static function osFromUserAgent($useragent = null) {
'Mac OS (classic)' => '(mac_powerpc)|(macintosh)',
'QNX' => 'QNX',
'BeOS' => 'beos',
'OS2' => 'os/2',
'SearchBot'=>'(nuhk)|(googlebot)|(yammybot)|(openbot)|(slurp)|(msnbot)|(ask jeeves/teoma)|(ia_archiver)'
'Apple iPad' => 'iPad',
'Apple iPhone' => 'iPhone',
'OS2' => 'os\/2',
'SearchBot'=>'(nuhk)|(googlebot)|(yammybot)|(openbot)|(slurp)|(msnbot)|(ask jeeves\/teoma)|(ia_archiver)'
);

if($useragent == null){
Expand Down

0 comments on commit 959a0c1

Please sign in to comment.