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-05-24 20:37:04 +0400
committersgiehl <stefan@piwik.org>2014-05-24 20:37:04 +0400
commitcef2d69f76320d8f02cea2418a4bf5d506aee513 (patch)
treec3a362a861346fc4fb32be6f1864b8cc9f27b3ce /plugins/API
parentcbde69956082195aa04439deb269181f5fdd8759 (diff)
starting to implement new DeviceDetector structure
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php
index 6d2b0e4e46..94a39e0186 100644
--- a/plugins/API/API.php
+++ b/plugins/API/API.php
@@ -714,11 +714,11 @@ class Plugin extends \Piwik\Plugin
if (empty($_SERVER['HTTP_USER_AGENT'])) {
return;
}
- if (!class_exists("DeviceDetector")) {
+ if (!class_exists("DeviceDetector\\DeviceDetector")) {
throw new \Exception("DeviceDetector could not be found, maybe you are using Piwik from git and need to have update Composer. <br>php composer.phar update");
}
- $ua = new \DeviceDetector($_SERVER['HTTP_USER_AGENT']);
+ $ua = new \DeviceDetector\DeviceDetector($_SERVER['HTTP_USER_AGENT']);
$ua->parse();
$os = $ua->getOs('short_name');
if ($os && in_array($os, array('AND', 'IOS'))) {