From 7a058b0f1a06c64d5763323c03ad1ca840bef268 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 23 Sep 2017 13:58:09 +0200 Subject: [PATCH] Use default database connection --- Admin/Installer.php | 2 +- Admin/Uninstall.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 05e595e..013a4ca 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -38,7 +38,7 @@ class Installer extends InstallerAbstract { parent::install(__DIR__ . '/..', $dbPool, $info); - switch ($dbPool->get('core')->getType()) { + switch ($dbPool->get()->getType()) { case DatabaseType::MYSQL: break; } diff --git a/Admin/Uninstall.php b/Admin/Uninstall.php index 12f282e..87edf9a 100644 --- a/Admin/Uninstall.php +++ b/Admin/Uninstall.php @@ -39,7 +39,7 @@ class Uninstall extends UninstallAbstract $query = new Builder($dbPool->get()); - $query->prefix($dbPool->get('core')->getPrefix())->drop( + $query->prefix($dbPool->get()->getPrefix())->drop( 'purchase_invoice', 'purchase_supplier', 'purchase_article'