From f94b508f8d68f9cf111bc45cc2860bff20027619 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Mon, 12 Oct 2009 23:07:51 -0400 Subject: [PATCH] save $this->db for later use --- content/app/controllers/ApplicationController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/app/controllers/ApplicationController.php b/content/app/controllers/ApplicationController.php index 810ee337a..1425d0bb5 100644 --- a/content/app/controllers/ApplicationController.php +++ b/content/app/controllers/ApplicationController.php @@ -18,8 +18,11 @@ class Content_ApplicationController extends Horde_Controller_Base $GLOBALS['conf']['sql']['adapter'] = $GLOBALS['conf']['sql']['phptype'] == 'mysqli' ? 'mysqli' : 'pdo_' . $GLOBALS['conf']['sql']['phptype']; - $db = Horde_Db_Adapter::factory($GLOBALS['conf']['sql']); - $context = array('dbAdapter' => $db); + // @TODO use this + // $injector = new Horde_Injector(); + + $this->db = Horde_Db_Adapter::factory($GLOBALS['conf']['sql']); + $context = array('dbAdapter' => $this->db); $this->typeManager = new Content_Types_Manager($context); $context['typeManager'] = $this->typeManager; -- 2.11.0