diff --git a/application/admin/controllers/SysController.php b/application/admin/controllers/SysController.php index 074b8665..357b6da6 100644 --- a/application/admin/controllers/SysController.php +++ b/application/admin/controllers/SysController.php @@ -100,13 +100,8 @@ class Admin_SysController extends Zend_Controller_Action $this->_redirect('/admin/sys/emailtext/ac/test/id/'.$id); } - $mailtp=new EmailText(); - $mailtp->db = $this->db; - $mailtp->tmpid = $this->_request->getParam('id'); - $mailtp->data = array( - 'user' => $this->_request->getParam('user') - ); - $body = $mailtp->loadtmp(); + $mailtp=new EmailText($this->db,$this->_request->getParam('id'),array('user' => $this->_request->getParam('user'))); + $body = $mailtp->getBody(); if($body === false) { $this->messenger->addMessage('模板加载失败');