Index: comment_upload.info
===================================================================
RCS file: comment_upload.info
diff -N comment_upload.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ comment_upload.info	14 Jan 2007 20:26:05 -0000
@@ -0,0 +1,5 @@
+; $ID$
+name = Comment upload
+description = Allows users to attach files to comments.
+dependencies = upload comment
+version = "$Name$"
Index: comment_upload.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/comment_upload/comment_upload.module,v
retrieving revision 1.4
diff -u -p -r1.4 comment_upload.module
--- comment_upload.module	23 Jun 2006 00:06:31 -0000	1.4
+++ comment_upload.module	14 Jan 2007 19:33:22 -0000
@@ -1,12 +1,6 @@
 <?php
 // $Id: comment_upload.module,v 1.4 2006/06/23 00:06:31 eaton Exp $
 
-function comment_upload_help($section) {
-  switch ($section) {
-    case 'admin/modules#description':
-      return t('Allows users to attach files to comments. Requires upload.module and comment.module.');
-  }
-}
 function comment_upload_comment(&$comment, $op) {
   $cid = is_object($comment) ? $comment->cid : $comment['cid'];
   $cid = is_array($cid) ? $cid['#value'] : $cid;
@@ -51,7 +45,7 @@ function comment_upload_comment(&$commen
         );
         $form['attachments']['wrapper'] += _upload_form($cobj);
 
-        $form['attachments']['wrapper']['attach']['#value'] = url('comment_upload/js', NULL, NULL, TRUE);
+        $form['attachments']['wrapper']['attach-url']['#value'] = url('comment_upload/js', NULL, NULL, TRUE);
         $form['current']['cid'] = array('#type' => 'hidden', '#value' => $cid);
         unset($form['attachments']['wrapper']['current']['vid']);
       }
@@ -150,7 +144,7 @@ function comment_upload_js() {
     $function('upload_js', $form);
   }
   $form = form_builder('upload_js', $form);
-  $output = theme('status_messages') . form_render($form);
+  $output = theme('status_messages') . drupal_render($form);
 
   // We send the updated file attachments form.
   print drupal_to_js(array('status' => TRUE, 'data' => $output));
