add debug_email

This commit is contained in:
wlx 2012-06-12 11:21:43 +00:00
parent 3ae7513fbf
commit 6f64018a7a
1 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,8 @@ class Admin_DataController extends Zend_Controller_Action
$this->view->config = Zend_Registry::get('config');
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->debug = 1;
$this->debug = 1;
$this->debug_email='wangliangxu@lzb.ac.cn';
}
function postDispatch()
{
@ -2169,7 +2170,7 @@ class Admin_DataController extends Zend_Controller_Action
if($this->debug==0)
{
$mail->addTo($this->view->config->service->email);
$mail->addCc($this->view->config->service->email);
//$mail->addCc($this->view->config->service->email);
}else{
$mail->addTo($this->debug_email);
}