From 8f91d22ffe695c62fd056236aa49744f7fd09525 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 11 Mar 2011 18:20:35 -0600 Subject: [PATCH] Updated Shop to use PDO driver --- osCommerce/OM/Core/Site/Shop/Controller.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osCommerce/OM/Core/Site/Shop/Controller.php b/osCommerce/OM/Core/Site/Shop/Controller.php index 8f3677dc3..9e3ec5b6e 100644 --- a/osCommerce/OM/Core/Site/Shop/Controller.php +++ b/osCommerce/OM/Core/Site/Shop/Controller.php @@ -17,6 +17,8 @@ use osCommerce\OM\Core\Database; use osCommerce\OM\Core\Template; +use osCommerce\OM\Core\DatabasePDO; + class Controller implements \osCommerce\OM\Core\SiteInterface { protected static $_default_application = 'Index'; @@ -29,6 +31,8 @@ public static function initialize() { Registry::set('Cache', new Cache()); Registry::set('Database', Database::initialize()); + Registry::set('PDO', DatabasePDO::initialize()); + $Qcfg = Registry::get('Database')->query('select configuration_key as cfgKey, configuration_value as cfgValue from :table_configuration'); $Qcfg->setCache('configuration'); $Qcfg->execute();