? sites/all/modules/devel
? sites/default/files
? sites/default/settings.php
Index: themes/bartik/template.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/template.php,v
retrieving revision 1.1
diff -u -p -r1.1 template.php
--- themes/bartik/template.php	6 Jul 2010 05:25:51 -0000	1.1
+++ themes/bartik/template.php	11 Jul 2010 11:42:45 -0000
@@ -93,6 +93,19 @@ function bartik_process_maintenance_page
 }
 
 /**
+ * Override or insert variables into the node template.
+ */
+function bartik_process_node(&$variables) {
+  // Remove the "Add new comment" link on the teaser page or if the comment
+  // form is being displayed on the same page.
+  if ($variables['teaser'] || !empty($variables['content']['comments']['comment_form'])) {
+    unset($variables['content']['links']['comment']['#links']['comment-add']);
+  }
+  // Only display the wrapper div if there are links.
+  $variables['links'] = render($variables['content']['links']);
+}
+
+/**
  * Override or insert variables into the block template.
  */
 function bartik_preprocess_block(&$variables) {
Index: themes/bartik/templates/node.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/templates/node.tpl.php,v
retrieving revision 1.1
diff -u -p -r1.1 node.tpl.php
--- themes/bartik/templates/node.tpl.php	6 Jul 2010 05:25:51 -0000	1.1
+++ themes/bartik/templates/node.tpl.php	11 Jul 2010 11:42:45 -0000
@@ -106,16 +106,7 @@
     ?>
   </div>
 
-  <?php
-    // Remove the "Add new comment" link on the teaser page or if the comment
-    // form is being displayed on the same page.
-    if ($teaser || !empty($content['comments']['comment_form'])) {
-      unset($content['links']['comment']['#links']['comment-add']);
-    }
-    // Only display the wrapper div if there are links.
-    $links = render($content['links']);
-    if ($links):
-  ?>
+  <?php if ($links): ?>
     <div class="link-wrapper">
       <?php print $links; ?>
     </div>
