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 /core/Session.php
parentae5fc3786a19f67202e2e83fd83e9e67657e8173 (diff)
Remove use of Zend_Registry to hold DB connections.
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Session.php b/core/Session.php
index 6cf0ee21a8..221c62bac2 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -12,7 +12,6 @@ namespace Piwik;
use Exception;
use Piwik\Session\SaveHandler\DbTable;
-use Zend_Registry;
use Zend_Session;
/**
@@ -95,7 +94,7 @@ class Session extends Zend_Session
// - user - we can't verify that user-defined session handler functions have already been set via session_set_save_handler()
// - mm - this handler is not recommended, unsupported, not available for Windows, and has a potential concurrency issue
- $db = \Zend_Registry::get('db');
+ $db = Db::get();
$config = array(
'name' => Common::prefixTable('session'),