[event_spamblock] Don't refresh timeout when displaying preview
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
1.89.2: Dont refresh timeout when displaying comment preview
|
||||||
|
|
||||||
1.89.1: Modified sql statement used for htaccess blocking to work in MySQL 5.7.
|
1.89.1: Modified sql statement used for htaccess blocking to work in MySQL 5.7.
|
||||||
Thanks to @fasterit!
|
Thanks to @fasterit!
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class serendipity_event_spamblock extends serendipity_event
|
|||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
'php' => '4.1.0'
|
'php' => '4.1.0'
|
||||||
));
|
));
|
||||||
$propbag->add('version', '1.89.1');
|
$propbag->add('version', '1.89.2');
|
||||||
$propbag->add('event_hooks', array(
|
$propbag->add('event_hooks', array(
|
||||||
'frontend_saveComment' => true,
|
'frontend_saveComment' => true,
|
||||||
'external_plugin' => true,
|
'external_plugin' => true,
|
||||||
@ -1290,7 +1290,7 @@ class serendipity_event_spamblock extends serendipity_event
|
|||||||
echo serendipity_setFormToken('form');
|
echo serendipity_setFormToken('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($timeout) $_SESSION['serendipity_comment_timeout'] = time();
|
if ($timeout && !isset($serendipity['POST']['preview'])) $_SESSION['serendipity_comment_timeout'] = time();
|
||||||
|
|
||||||
|
|
||||||
// Check whether to allow comments from registered authors
|
// Check whether to allow comments from registered authors
|
||||||
|
Reference in New Issue
Block a user