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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-24 06:58:51 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-24 06:58:51 +0400
commit48681dd582fbc9f840183cad28cc3e4dd3418d05 (patch)
tree88008786b75c8a3a342f6e784413430a9c0779e2 /plugins/Dashboard
parentae5fc3786a19f67202e2e83fd83e9e67657e8173 (diff)
Remove use of Zend_Registry to hold DB connections.
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/Dashboard.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Dashboard/Dashboard.php b/plugins/Dashboard/Dashboard.php
index 4de67194d8..58bdc303c9 100644
--- a/plugins/Dashboard/Dashboard.php
+++ b/plugins/Dashboard/Dashboard.php
@@ -16,7 +16,6 @@ use Piwik\Common;
use Piwik\Site;
use Piwik\Db;
use Piwik\WidgetsList;
-use Zend_Registry;
/**
* @package Dashboard
@@ -264,7 +263,7 @@ class Dashboard extends \Piwik\Plugin
} catch (Exception $e) {
// mysql code error 1050:table already exists
// see bug #153 http://dev.piwik.org/trac/ticket/153
- if (!Zend_Registry::get('db')->isErrNo($e, '1050')) {
+ if (!Db::get()->isErrNo($e, '1050')) {
throw $e;
}
}