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
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2014-06-17 11:05:29 +0400
committersgiehl <stefan@piwik.org>2014-06-17 11:05:29 +0400
commit960e6053d738bde4b30d126e7fd76862dfff6ee5 (patch)
treec680656a8e40c7be6c1c6df5cfdd852a7bb1dc0c /plugins/DevicesDetection/functions.php
parent203b8aabba3a814e5816c7dbd9e869008089929d (diff)
use constant for BOT os
Diffstat (limited to 'plugins/DevicesDetection/functions.php')
-rw-r--r--plugins/DevicesDetection/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php
index 1ce6013558..376912b035 100644
--- a/plugins/DevicesDetection/functions.php
+++ b/plugins/DevicesDetection/functions.php
@@ -165,7 +165,7 @@ function getModelName($label)
function getOSFamilyFullNameExtended($label)
{
- if ($label == 'BOT') {
+ if ($label == \Piwik\Tracker\Settings::OS_BOT) {
return 'Bot';
}
$label = OperatingSystemParser::getOsFamily($label);
@@ -186,7 +186,7 @@ function getOsFamilyLogoExtended($label)
function getOsFullNameExtended($label)
{
- if (substr($label, 0, 3) == 'BOT') {
+ if (substr($label, 0, 3) == \Piwik\Tracker\Settings::OS_BOT) {
return 'Bot';
}
if (!empty($label) && $label != ";") {