From fa4ae23332189ec1e2e9a5eff47d80a82fbb27cf Mon Sep 17 00:00:00 2001 From: sgiehl Date: Mon, 19 Jan 2015 00:17:29 +0100 Subject: fixed device detector cache; added fallback for old windows short codes --- plugins/DevicesDetection/functions.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'plugins/DevicesDetection/functions.php') 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; -- cgit v1.2.3