fix bug - missing db connection
authorMarkus Warg <mw@it-sls.de>
Wed, 18 Aug 2010 13:06:08 +0000 (15:06 +0200)
committerMarkus Warg <mw@it-sls.de>
Wed, 18 Aug 2010 13:06:08 +0000 (15:06 +0200)
manager/application/controllers/MailController.php

index e1449fd..fb58194 100644 (file)
@@ -17,6 +17,10 @@ class MailController extends Zend_Controller_Action
     public function init()
     {
         /* Initialize action controller here */
+       $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
+       $db2 = Zend_Db::factory($config->ca_mgr->db->auth2->pdo, $config->ca_mgr->db->auth2);
+               Zend_Registry::set('auth2_dbc', $db2);
+
                $session = Zend_Registry::get('session');
        $auth = $session->authdata['authed_permissions'];