diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-24 06:58:51 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-24 06:58:51 +0400 |
commit | 48681dd582fbc9f840183cad28cc3e4dd3418d05 (patch) | |
tree | 88008786b75c8a3a342f6e784413430a9c0779e2 /plugins/Dashboard/Dashboard.php | |
parent | ae5fc3786a19f67202e2e83fd83e9e67657e8173 (diff) |
Remove use of Zend_Registry to hold DB connections.
Diffstat (limited to 'plugins/Dashboard/Dashboard.php')
-rw-r--r-- | plugins/Dashboard/Dashboard.php | 3 |
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; } } |