diff options
Diffstat (limited to 'plugins/DevicesDetection/functions.php')
-rw-r--r-- | plugins/DevicesDetection/functions.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php index 34f8ed8690..0812741aec 100644 --- a/plugins/DevicesDetection/functions.php +++ b/plugins/DevicesDetection/functions.php @@ -130,18 +130,16 @@ function Piwik_getOsFullNameExtended($label) if (!empty($label) && $label != ";") { $os = substr($label, 0, 3); $ver = substr($label, 4, 15); - $osFullName = array_search($os, UserAgentParserEnhanced::$osShorts); - if ($osFullName) { - if (in_array($os, UserAgentParserEnhanced::$osFamilies['Windows'])) { - return $osFullName; - } else { - return trim($osFullName . " " . $ver); - } + $name = UserAgentParserEnhanced::getOsNameFromId($os, $ver); + if(!empty($name)) { + return $name; } } return Piwik_Translate('General_Unknown'); } + + function Piwik_getOsLogoExtended($label) { $short = substr($label, 0, 3); |