From 431a831f48ed401e2e87e5f62399771ae7cb5d89 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 02:58:32 +0000 Subject: Update tests to match the way that we store server variables in the comment. Get rid of comment::update tests since, comment::update is gone. Found a bug in comment::create() in the process.. yay unit tests! --- modules/comment/helpers/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 444e7e95..e5904bad 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -48,7 +48,7 @@ class comment_Core { // These values are useful for spam fighting, so save them with the comment. $input = Input::instance(); $comment->server_http_accept = $input->server("HTTP_ACCEPT"); - $comment->server_http_accept_charset = $input->server("SERVER_HTTP_ACCEPT_CHARSET"); + $comment->server_http_accept_charset = $input->server("HTTP_ACCEPT_CHARSET"); $comment->server_http_accept_encoding = $input->server("HTTP_ACCEPT_ENCODING"); $comment->server_http_accept_language = $input->server("HTTP_ACCEPT_LANGUAGE"); $comment->server_http_connection = $input->server("HTTP_CONNECTION"); -- cgit v1.2.3