From cee2b6111aa0725dca17be065fe6c40fb47af088 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Tue, 19 Feb 2008 20:10:54 +0000 Subject: [PATCH] $post was not redefined when saving comment: prettyurls made a wrong url; need tests: is it now correct? --- comments.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/comments.php b/comments.php index 77bf5f1..8450ad0 100644 --- a/comments.php +++ b/comments.php @@ -157,11 +157,15 @@ if ($fp_config['general']['notify'] && !user_loggedin()) { + + global $post; + $comm_mail = isset($arr['email'])? "<{$arr['email']}>" : ''; $from_mail = $comm_mail? $arr['email'] : $fp_config['general']['email']; $q =& new FPDB_Query(array('entry'=>$_GET['entry'],'fullparse'=>false), null); list($entryid, $e) = $q->getEntry(); - + + $post = $e; // plugin such as prettyurls might need this... $lang = lang_load('comments');