From: Chuck Hagenbuch Date: Tue, 13 Oct 2009 03:07:51 +0000 (-0400) Subject: save $this->db for later use X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f94b508f8d68f9cf111bc45cc2860bff20027619;p=horde.git save $this->db for later use --- 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;