From 8a3b10504967e18cfd5ec42fa2ecd9c0fc5940da Mon Sep 17 00:00:00 2001
From: sgiehl <stefan@piwik.org>
Date: Mon, 3 Mar 2014 21:01:07 +0100
Subject: [PATCH] BlackBerry Tablet OS should be in BlackBerry os family
 instead of other mobile

---
 .../UserAgentParserEnhanced/UserAgentParserEnhanced.php       | 4 ++--
 tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/DevicesDetection/UserAgentParserEnhanced/UserAgentParserEnhanced.php b/plugins/DevicesDetection/UserAgentParserEnhanced/UserAgentParserEnhanced.php
index 80882d3d03..3f71c7c470 100644
--- a/plugins/DevicesDetection/UserAgentParserEnhanced/UserAgentParserEnhanced.php
+++ b/plugins/DevicesDetection/UserAgentParserEnhanced/UserAgentParserEnhanced.php
@@ -270,7 +270,7 @@ class UserAgentParserEnhanced
         'Android'               => array('AND'),
         'AmigaOS'               => array('AMG'),
         'Apple TV'              => array('ATV'),
-        'BlackBerry'            => array('BLB'),
+        'BlackBerry'            => array('BLB', 'QNX'),
         'Bot'                   => array('BOT'),
         'Brew'                  => array('BMP'),
         'BeOS'                  => array('BEO', 'HAI'),
@@ -284,7 +284,7 @@ class UserAgentParserEnhanced
         'Linux'                 => array('LIN', 'ARL', 'DEB', 'KNO', 'MIN', 'UBT', 'KBT', 'XBT', 'LBT', 'FED', 'RHT', 'MDR', 'GNT', 'SAB', 'SLW', 'SSE', 'PPY', 'CES', 'BTR', 'YNS', 'PRS', 'SAF'),
         'Mac'                   => array('MAC'),
         'Mobile Gaming Console' => array('PSP', 'NDS', 'XBX'),
-        'Other Mobile'          => array('WOS', 'POS', 'QNX', 'SBA', 'TIZ', 'SMG'),
+        'Other Mobile'          => array('WOS', 'POS', 'SBA', 'TIZ', 'SMG'),
         'Simulator'             => array('TKT', 'WWP'),
         'Symbian'               => array('SYM', 'SYS', 'SY3', 'S60', 'S40'),
         'Unix'                  => array('SOS', 'AIX', 'HPX', 'BSD', 'NBS', 'OBS', 'DFB', 'SYL', 'IRI', 'T64', 'INF'),
diff --git a/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml b/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml
index f64fb48a2a..234ffa51d2 100644
--- a/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml
+++ b/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml
@@ -19804,7 +19804,7 @@
     type: tablet
     brand: RM
     model: BlackBerry Playbook
-  os_family: Other Mobile
+  os_family: BlackBerry
   browser_family: BlackBerry Browser
 - 
   user_agent: Mozilla/5.0 (Linux; U; Android 4.1.1; cs-cz; GT-N8000 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30
-- 
GitLab