From f46e6626cd5274f1783fb2f6e0e776b8b43b1a5c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 16 Oct 2009 15:54:33 +0000 Subject: - Patch #440876 by Dave Reid, sun: reuse comment.module's anonymous cookie information. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 8dca3845e..b38f6381b 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1645,7 +1645,7 @@ function comment_form($form, &$form_state, $comment) { if (!$user->uid && variable_get('comment_anonymous_' . $node->type, COMMENT_ANONYMOUS_MAYNOT_CONTACT) != COMMENT_ANONYMOUS_MAYNOT_CONTACT) { $form['#attached']['library'][] = array('system', 'cookie'); - $form['#attached']['js'][] = drupal_get_path('module', 'comment') . '/comment.js'; + $form['#attributes']['class'][] = 'user-info-from-cookie'; } $comment = (array) $comment; -- cgit v1.2.3