From c675d4f951841a2a0e44c0f44a61c7e94c49c9dc Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 10 Jan 2010 01:05:22 +0000 Subject: #680022 by yched: Fixed template_preprocess() generates invalid CSS classes. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 328c707d3..6ddf25747 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -2250,7 +2250,7 @@ function template_preprocess(&$variables, $hook) { $variables['directory'] = path_to_theme(); // Initialize html class attribute for the current hook. - $variables['classes_array'] = array($hook); + $variables['classes_array'] = array(drupal_html_class($hook)); // Initialize attributes for the top-level template entity and its title and // content. -- cgit v1.2.3