summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 3bbc3d991..678c92bf2 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2126,7 +2126,7 @@ function template_preprocess_comment(&$variables) {
// Preprocess fields.
field_attach_preprocess('comment', $comment, $variables['elements'], $variables);
- $variables['template_files'][] = 'comment-' . $variables['node']->type;
+ $variables['theme_hook_suggestions'][] = 'comment__' . $variables['node']->type;
// Helpful $content variable for templates.
foreach (element_children($variables['elements']) as $key) {
@@ -2217,7 +2217,7 @@ function template_preprocess_comment_wrapper(&$variables) {
// Provide contextual information.
$variables['node'] = $variables['content']['#node'];
$variables['display_mode'] = variable_get('comment_default_mode_' . $variables['node']->type, COMMENT_MODE_THREADED);
- $variables['template_files'][] = 'comment-wrapper-' . $variables['node']->type;
+ $variables['theme_hook_suggestions'][] = 'comment_wrapper__' . $variables['node']->type;
}
/**