fetus Diary
2006/11/28(火) - あー。
<?php
...
class CommentWriteAction extends CommonAction {
public function execute() {
$input = $this->GetNormalizedParam(array('id','name','body','captcha','captcha_id'), 'UTF-8', 'aKV');
$this->getContext()->getRequest()->setAttributeByRef('input', $input);
$dbcon = DBConnection::getConnection();
$diary_data = new DiaryData($dbcon);
$captcha_data = new CaptchaData($dbcon);
$diary_comment_data = new CommentData($dbcon);
$data = $diary_data->QueryByID($input['id']);
if($data) {
$this->getContext()->getRequest()->setAttribute('entry', $data);
...
$auth_master = new AuthMaster($dbcon);
$author_mail = $auth_master->GetMailaddressFromID($data['editor_id']);
if($author_mail == '') {
$author_mail = 'yayoi-diary@localhost.localdomain';
}
$mailer = new CommentNotifyMail();
$mailer->Send('', $author_mail, $data['date'], $input['id'], $input['name'], NULL, $input['body']);
} else {
...
}
$this->getContext()->getController()->redirect(YAYOI_BASE_URL . 'm_c_' . $input['id'] . '.html');
return View::NONE;
}
}
?>
あー、CommentNotifyMail の利用方法が古いままだ… orz
06/11/28 22:1606/11/29 1:33
関係あるかも?
このエントリは次のエントリから参照されているみたいです
- 2006/11/28(火) - HiNa - よし
コメント
TRAN (06/11/29 1:23)
むらかみさんのは、これが原因・・・?
むらかみ (06/11/29 1:37)
そのようです。