From 5f4f941444fd6d71dbdf047b75a000b6443ccebb Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 9 Feb 2012 17:11:03 +0000 Subject: [PATCH] half-logged-in only for one day --- ext/comment/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index 2ebed4c3..d1b121b8 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -471,7 +471,7 @@ class CommentList extends Extension { throw new CommentPostingException("Comment too repetitive~"); } else if($user->is_anonymous() && !$this->hash_match()) { - set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24*$config->get_int('login_memory'), "/"); + set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24, "/"); throw new CommentPostingException( "Comment submission form is out of date; refresh the ". "comment form to show you aren't a spammer~");