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
path: root/libs
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-05-30 01:48:56 +0400
committersgiehl <stefan@piwik.org>2014-05-30 01:48:56 +0400
commitf85f7d61d9a398b812920c6121461d518349e21a (patch)
tree6c2d61f10bcfaa4babc7e230433a15f96827bb1b /libs
parentb826190f10c4cad57b542e8634f3bce0607aba42 (diff)
reimplemented caching; fixed detection of BOT 'os'
Diffstat (limited to 'libs')
-rw-r--r--libs/UserAgentParser/UserAgentParser.php3
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;