Index: modules/comment.module
===================================================================
--- modules/comment.module	(revision 5735)
+++ modules/comment.module	(working copy)
@@ -157,16 +158,36 @@
  *
  * Generates a block with the most recent comments.
  */
-function comment_block($op = 'list', $delta = 0) {
+function comment_block($op = 'list', $delta = 0, $edit = array()) {
   if ($op == 'list') {
     $blocks[0]['info'] = t('Recent comments');
     return $blocks;
   }
+  else if ($op == 'configure') {
+    $form['showtimes'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Show times next to comment titles'),
+      '#default_value' => variable_get('comment_block_showtimes', TRUE),
+    );
+    $form['count'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Number of comments to display'),
+      '#default_value' => variable_get('comment_block_count', 10),
+    ); 
+    return $form;
+  }
+  else if ($op == 'save') {
+    variable_set('comment_block_showtimes', $edit['showtimes']);
+    $text_value = $edit['count'];
+    settype($edit['count'], 'integer');
+    if ($edit['count'] > 0 && $edit['count'] == $text_value)
+      variable_set('comment_block_count', $edit['count']);
+  }
   else if ($op == 'view' && user_access('access comments')) {
-    $result = db_query_range(db_rewrite_sql('SELECT c.nid, c.* FROM {comments} c INNER JOIN {node} n ON n.nid = c.nid WHERE n.status = 1 AND c.status = %d ORDER BY c.timestamp DESC', 'c'), COMMENT_PUBLISHED, 0, 10);
+    $result = db_query_range(db_rewrite_sql('SELECT c.nid, c.* FROM {comments} c INNER JOIN {node} n ON n.nid = c.nid WHERE n.status = 1 AND c.status = %d ORDER BY c.timestamp DESC', 'c'), COMMENT_PUBLISHED, 0, variable_get('comment_block_count', 10));
     $items = array();
     while ($comment = db_fetch_object($result)) {
-      $items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $comment->timestamp)));
+      $items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) . (variable_get('comment_block_showtimes', TRUE) ? '<br />'. t('%time ago', array('%time' => format_interval(time() - $comment->timestamp))) : '');
     }
 
     $block['subject'] = t('Recent comments');
