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:
Diffstat (limited to 'core/DeviceDetector/DeviceDetectorFactory.php')
-rw-r--r--core/DeviceDetector/DeviceDetectorFactory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/DeviceDetector/DeviceDetectorFactory.php b/core/DeviceDetector/DeviceDetectorFactory.php
index a10c06092b..6aa340e639 100644
--- a/core/DeviceDetector/DeviceDetectorFactory.php
+++ b/core/DeviceDetector/DeviceDetectorFactory.php
@@ -10,6 +10,7 @@ namespace Piwik\DeviceDetector;
use DeviceDetector\DeviceDetector;
use Piwik\Common;
+use Piwik\Container\StaticContainer;
class DeviceDetectorFactory
{
@@ -51,7 +52,7 @@ class DeviceDetectorFactory
{
$deviceDetector = new DeviceDetector($userAgent);
$deviceDetector->discardBotInformation();
- $deviceDetector->setCache(new DeviceDetectorCache(86400));
+ $deviceDetector->setCache(StaticContainer::get('DeviceDetector\Cache\Cache'));
$deviceDetector->parse();
return $deviceDetector;
}