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:
authormattab <matthieu.aubry@gmail.com>2014-10-11 05:17:29 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-11 05:17:29 +0400
commit08e4ddd0a59c122ce61fea638c9dafb61410f0e0 (patch)
tree3ac70841c6a57bda720a27d40a103c4651adf39c /core/Tracker/Model.php
parentb8d754c39b92ea859e0463d9303950d392a40099 (diff)
Use the Db get helper rather than always Tracker DB, this could fix an issue in tests
Diffstat (limited to 'core/Tracker/Model.php')
-rw-r--r--core/Tracker/Model.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Tracker/Model.php b/core/Tracker/Model.php
index 090cd8be59..e4bef365cc 100644
--- a/core/Tracker/Model.php
+++ b/core/Tracker/Model.php
@@ -11,6 +11,7 @@ namespace Piwik\Tracker;
use Exception;
use PDOStatement;
use Piwik\Common;
+use Piwik\Db;
use Piwik\Tracker;
use Piwik\Tracker\Db\DbException;
@@ -377,7 +378,7 @@ class Model
private function getDb()
{
- return Tracker::getDatabase();
+ return Db::get();
}
}