Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2015-01-19 02:17:29 +0300
committersgiehl <stefan@piwik.org>2015-01-19 02:17:29 +0300
commitfa4ae23332189ec1e2e9a5eff47d80a82fbb27cf (patch)
tree1da67df60bb0dc09714efdf1b5ce8f63fb03f222 /plugins/DevicesDetection/functions.php
parent20c994ca4110eb1478d356d3582f211821d5ad6f (diff)
fixed device detector cache; added fallback for old windows short codes
Diffstat (limited to 'plugins/DevicesDetection/functions.php')
-rw-r--r--plugins/DevicesDetection/functions.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php
index 8ab0ffe925..1aff9a6fb7 100644
--- a/plugins/DevicesDetection/functions.php
+++ b/plugins/DevicesDetection/functions.php
@@ -240,6 +240,19 @@ function _mapLegacyOsShortCodes($shortCode)
'DSI' => 'NDS', // Nintendo DSi => Nintendo Mobile
'PSV' => 'PSP', // PlayStation Vita => PlayStation Portable
'MAE' => 'SMG', // Maemo => MeeGo
+ 'W10' => 'WIN',
+ 'W2K' => 'WIN',
+ 'W31' => 'WIN',
+ 'WI7' => 'WIN',
+ 'WI8' => 'WIN',
+ 'W81' => 'WIN',
+ 'W95' => 'WIN',
+ 'W98' => 'WIN',
+ 'WME' => 'WIN',
+ 'WNT' => 'WIN',
+ 'WS3' => 'WIN',
+ 'WVI' => 'WIN',
+ 'WXP' => 'WIN',
//'VMS' => '', // OpenVMS => ??
);
return array_key_exists($shortCode, $legacyShortCodes) ? $legacyShortCodes[$shortCode] : $shortCode;