summaryrefslogtreecommitdiff
path: root/manager/application
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-08-18 15:06:08 +0200
committerMarkus Warg <mw@it-sls.de>2010-08-18 15:06:08 +0200
commitea4c410936239901a99e241bb0cad6ba3bf70628 (patch)
tree46a2147acea43baf1fad3916711bfa259d9f0b4d /manager/application
parent79b16d2a04b61587759b36b0ab773c2ebaf352a9 (diff)
downloadcacert-mgr-ea4c410936239901a99e241bb0cad6ba3bf70628.tar.gz
cacert-mgr-ea4c410936239901a99e241bb0cad6ba3bf70628.tar.xz
cacert-mgr-ea4c410936239901a99e241bb0cad6ba3bf70628.zip
fix bug - missing db connection
Diffstat (limited to 'manager/application')
-rw-r--r--manager/application/controllers/MailController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/manager/application/controllers/MailController.php b/manager/application/controllers/MailController.php
index e1449fd..fb58194 100644
--- a/manager/application/controllers/MailController.php
+++ b/manager/application/controllers/MailController.php
@@ -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'];