Skip to content
Snippets Groups Projects
Commit 454c76bc authored by Nick Barry's avatar Nick Barry
Browse files

Adjustments to config for admin emails

parent a5097969
Branches
No related tags found
1 merge request!14Merge projects-task-8 into master
......@@ -40,7 +40,7 @@ unl.templates.options.templatedependentspath = APPLICATION_PATH "/../document_ro
ldap.uri = "ldap://example.com"
ldap.dn = "uid=user,dc=example,dc=com"
ldap.password = "password"
resources.errors.notifyEmails = ""
unl.errors.notifyEmails = ""
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.layout.layout = "unl_wdn"
......
......@@ -32,7 +32,7 @@ class ErrorController extends Creq_Controller_Action {
$front = Zend_Controller_Front::getInstance();
$options = $front->getParam('bootstrap')->getOptions();
$emails = explode(",", $options['resources']['errors']['notifyEmails']);
$emails = explode(",", $options['unl']['errors']['notifyEmails']);
$this->_sendEmail($emails);
$this->view->exceptions = $this->_exceptions;
......
......@@ -6,7 +6,7 @@ class NotifyEmailModel
{
$front = Zend_Controller_Front::getInstance();
$options = $front->getParam('bootstrap')->getOptions();
$emails = explode(",", $options['resources']['errors']['notifyEmails']);
$emails = explode(",", $options['unl']['errors']['notifyEmails']);
$mail = new Zend_Mail('utf-8');
$mail->setFrom('php@' . $_SERVER['SERVER_NAME'], $_SERVER['SERVER_NAME']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment