From b5e450934ddc35f2fade522d08f099ec1887db6f 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 | 6 +++--- Admin/Uninstall.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 1e73657..08ea91e 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -38,10 +38,10 @@ class Installer extends InstallerAbstract { parent::install(__DIR__ . '/..', $dbPool, $info); - switch ($dbPool->get('core')->getType()) { + switch ($dbPool->get()->getType()) { case DatabaseType::MYSQL: - $dbPool->get('core')->con->prepare( - 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'marketing_promotion` ( + $dbPool->get()->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get()->prefix . 'marketing_promotion` ( `marketing_promotion_id` int(11) NOT NULL AUTO_INCREMENT, `marketing_promotion_name` varchar(30) NOT NULL, `marketing_promotion_description` text DEFAULT NULL, diff --git a/Admin/Uninstall.php b/Admin/Uninstall.php index 44cb034..d4c64a4 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( 'marketing_promotion' );