From 995800e064fdf948ee243e2b22ea1f4b8eaf014f Mon Sep 17 00:00:00 2001
From: Alex <alex.nedel@opin.ca>
Date: Wed, 23 Jan 2013 17:15:31 -0500
Subject: [PATCH] Fixed 'New comment form label' and 'Comment form location'
 now works

---
 comment_goodness.module | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 comment_goodness.module

diff --git a/comment_goodness.module b/comment_goodness.module
old mode 100644
new mode 100755
index 73af4ba..3796cc4
--- a/comment_goodness.module
+++ b/comment_goodness.module
@@ -208,8 +208,9 @@ function comment_goodness_menu_alter(&$items) {
 function comment_goodness_theme_registry_alter(&$theme_registry) {
   if(isset($theme_registry['comment_wrapper'])) {
     $comment_wrapper = $theme_registry['comment_wrapper'];
-    // If the current template belongs to the core comment module, replace it.
-    if (isset($comment_wrapper['template']) && $comment_wrapper['template'] === 'modules/comment/comment-wrapper') {
+    // If the current template belongs to the core comment module 
+    // OR anywhere else (i.e. inside '/themes/your_template' directory), replace it.
+    if (isset($comment_wrapper['template'])) {
       $path = drupal_get_path('module', 'comment_goodness');
       $theme_registry['comment_wrapper']['template'] = $path . '/templates/comment-wrapper';
     }
-- 
1.7.11.1

