Retiens le précédent nom d'un visiteur non connecté
This commit is contained in:
@@ -53,6 +53,7 @@ class VisitorController {
|
||||
if ($author !== null) {
|
||||
$comment->setAuthor($author);
|
||||
} else {
|
||||
$_SESSION['previous_name'] = $_POST['name'];
|
||||
$comment->setAuthorName($_POST['name']);
|
||||
}
|
||||
$di->getCommentGateway()->insert($comment);
|
||||
|
Reference in New Issue
Block a user