$post was not redefined when saving comment: prettyurls made a wrong url; need tests: is it now correct?
This commit is contained in:
parent
df78f3176a
commit
cee2b6111a
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user