fix #296, 修复comment post note

This commit is contained in:
wlx 2012-01-06 09:10:51 +00:00
parent b95094527b
commit e44ab66df0
1 changed files with 3 additions and 3 deletions

View File

@ -754,16 +754,16 @@ class DataController extends Zend_Controller_Action
{ {
@$mailtp=new EmailText( @$mailtp=new EmailText(
$this->db, $this->db,
'data-comments-posted', 'data-comment-note',
array( array(
'user' =>$data['author'], 'user' =>$user->username,
'uuid' =>$data['uuid'], 'uuid' =>$data['uuid'],
'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))), 'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))),
) )
); );
@$mail=new WestdcMailer($this->view->config->smtp); @$mail=new WestdcMailer($this->view->config->smtp);
@$mail->setBodyText($mailtp->getBody()); @$mail->setBodyText($mailtp->getBody());
@$mail->setFrom($this->view->config->service->email,'WDSCAR Service Team'); @$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
@$mail->addTo($this->view->config->service->email); @$mail->addTo($this->view->config->service->email);
@$mail->setSubject($mailtp->getSubject()); @$mail->setSubject($mailtp->getSubject());
@$mail->send(); @$mail->send();