Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Windows 8.1 #131

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion libs/UserAgentParser/UserAgentParser.php 100644 → 100755
Expand Up @@ -228,6 +228,7 @@ class UserAgentParser
// workaround for vendors who changed the WinPhone 7 user agent
'WP7' => 'WPH',

'Windows NT 6.3' => 'WI8.1',
'CYGWIN_NT-6.2' => 'WI8',
'Windows NT 6.2' => 'WI8',
'Windows 8' => 'WI8',
Expand Down Expand Up @@ -334,7 +335,7 @@ class UserAgentParser
// NOTE: The keys in this array are used by plugins/UserSettings/functions.php . Any changes
// made here should also be made in that file.
static protected $osType = array(
'Windows' => array('WI8', 'WI7', 'WVI', 'WS3', 'WXP', 'W2K', 'WNT', 'WME', 'W98', 'W95'),
'Windows' => array('WI8.1', 'WI8', 'WI7', 'WVI', 'WS3', 'WXP', 'W2K', 'WNT', 'WME', 'W98', 'W95'),
'Linux' => array('LIN'),
'Mac' => array('MAC'),
'iOS' => array('IPD', 'IPA', 'IPH'),
Expand Down Expand Up @@ -628,6 +629,7 @@ static protected function init()
'DSI' => 'DSi',
'3DS' => '3DS',
'PSV' => 'PS Vita',
'WI8.1' => 'Win 8.1',
'WI8' => 'Win 8',
'WI7' => 'Win 7',
'WVI' => 'Win Vista',
Expand Down
1 change: 1 addition & 0 deletions plugins/DevicesDetection/UserAgentParserEnhanced/UserAgentParserEnhanced.php 100644 → 100755
Expand Up @@ -183,6 +183,7 @@ class UserAgentParserEnhanced
'Windows 3.1' => 'W31',
'Windows 7' => 'WI7',
'Windows 8' => 'WI8',
'Windows 8.1' => 'WI8.1',
'Windows 95' => 'W95',
'Windows 98' => 'W98',
'Windows CE' => 'WCE',
Expand Down