diff options
author | sgiehl <stefan@piwik.org> | 2014-05-30 01:48:56 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-05-30 01:48:56 +0400 |
commit | f85f7d61d9a398b812920c6121461d518349e21a (patch) | |
tree | 6c2d61f10bcfaa4babc7e230433a15f96827bb1b /plugins/DevicesDetection/functions.php | |
parent | b826190f10c4cad57b542e8634f3bce0607aba42 (diff) |
reimplemented caching; fixed detection of BOT 'os'
Diffstat (limited to 'plugins/DevicesDetection/functions.php')
-rw-r--r-- | plugins/DevicesDetection/functions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php index b8ff3a8854..085a35814c 100644 --- a/plugins/DevicesDetection/functions.php +++ b/plugins/DevicesDetection/functions.php @@ -165,6 +165,9 @@ function getModelName($label) function getOSFamilyFullNameExtended($label) { + if ($label == 'BOT') { + return 'Bot'; + } $label = OperatingSystemParser::getOsFamily($label); if($label !== false) { return $label; @@ -183,6 +186,9 @@ function getOsFamilyLogoExtended($label) function getOsFullNameExtended($label) { + if ($label == 'BOT') { + return 'Bot'; + } if (!empty($label) && $label != ";") { $os = substr($label, 0, 3); $ver = substr($label, 4, 15); |