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/Updater.php
parentae5fc3786a19f67202e2e83fd83e9e67657e8173 (diff)
Remove use of Zend_Registry to hold DB connections.
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Updater.php b/core/Updater.php
index 9fef7ff41f..0783b964f3 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -249,7 +249,7 @@ class Updater
$currentVersion = Piwik_GetOption('version_' . $name);
} catch (\Exception $e) {
// mysql error 1146: table doesn't exist
- if (\Zend_Registry::get('db')->isErrNo($e, '1146')) {
+ if (Db::get()->isErrNo($e, '1146')) {
// case when the option table is not yet created (before 0.2.10)
$currentVersion = false;
} else {
@@ -294,7 +294,7 @@ class Updater
Db::exec($update);
} catch (\Exception $e) {
if (($ignoreError === false)
- || !\Zend_Registry::get('db')->isErrNo($e, $ignoreError)
+ || !Db::get()->isErrNo($e, $ignoreError)
) {
$message = $file . ":\nError trying to execute the query '" . $update . "'.\nThe error was: " . $e->getMessage();
throw new Updater_UpdateErrorException($message);