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!
This commit is contained in:
Bharat Mediratta
2009-01-11 02:58:32 +00:00
parent a53b2d85c7
commit 431a831f48
2 changed files with 63 additions and 60 deletions

View File

@@ -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");