1
0

php8 compat fixes for entry preview

This commit is contained in:
onli
2021-05-09 16:54:27 +02:00
parent 24c02da747
commit 4c246ad426
7 changed files with 22 additions and 15 deletions

View File

@ -204,6 +204,8 @@ function serendipity_displayCommentForm($id, $url = '', $comments = NULL, $data
'commentform_entry' => $entry
);
if (! isset($commentform_data['required_fields'])) { $commentform_data['required_fields'] = ['name' => false, 'comment' => false]; }
$serendipity['smarty']->assign($commentform_data);
serendipity_smarty_fetch('COMMENTFORM', 'commentform.tpl');