summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 142226b85..5a7ac3722 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1965,7 +1965,8 @@ function template_preprocess_node(&$variables) {
$variables['picture'] = '';
}
// Clean up name so there are no underscores.
- $variables['template_files'][] = 'node-' . $node->type;
+ $variables['template_files'][] = 'node-' . str_replace('_', '-', $node->type);
+ $variables['template_files'][] = 'node-' . $node->nid;
}
/**