$post was not redefined when saving comment: prettyurls made a wrong url; need tests: is it now correct?

This commit is contained in:
real_nowhereman 2008-02-19 20:10:54 +00:00
parent df78f3176a
commit cee2b6111a

View File

@ -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');