From 00099282fbcba8594044cdd42f2c1fab31da8b15 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 13 Oct 2011 10:12:17 +0000 Subject: [PATCH] use the new EmailText class. --- application/admin/controllers/SysController.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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('模板加载失败');