add debug_email
This commit is contained in:
parent
3ae7513fbf
commit
6f64018a7a
|
@ -7,7 +7,8 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$this->view->config = Zend_Registry::get('config');
|
$this->view->config = Zend_Registry::get('config');
|
||||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||||
$this->view->messages = $this->messenger->getMessages();
|
$this->view->messages = $this->messenger->getMessages();
|
||||||
$this->debug = 1;
|
$this->debug = 1;
|
||||||
|
$this->debug_email='wangliangxu@lzb.ac.cn';
|
||||||
}
|
}
|
||||||
function postDispatch()
|
function postDispatch()
|
||||||
{
|
{
|
||||||
|
@ -2169,7 +2170,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
if($this->debug==0)
|
if($this->debug==0)
|
||||||
{
|
{
|
||||||
$mail->addTo($this->view->config->service->email);
|
$mail->addTo($this->view->config->service->email);
|
||||||
$mail->addCc($this->view->config->service->email);
|
//$mail->addCc($this->view->config->service->email);
|
||||||
}else{
|
}else{
|
||||||
$mail->addTo($this->debug_email);
|
$mail->addTo($this->debug_email);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue