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 /libs | |
parent | b826190f10c4cad57b542e8634f3bce0607aba42 (diff) |
reimplemented caching; fixed detection of BOT 'os'
Diffstat (limited to 'libs')
-rw-r--r-- | libs/UserAgentParser/UserAgentParser.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/UserAgentParser/UserAgentParser.php b/libs/UserAgentParser/UserAgentParser.php index c0c8fea1ce..009bc5a785 100644 --- a/libs/UserAgentParser/UserAgentParser.php +++ b/libs/UserAgentParser/UserAgentParser.php @@ -694,6 +694,9 @@ class UserAgentParser } if(class_exists('DeviceDetector\\Parser\\OperatingSystem')) { + if ($osId == 'BOT') { + return 'Bot'; + } return DeviceDetector\Parser\OperatingSystem::getNameFromId($osId); } return false; |