Commit c675d4f9 authored by webchick's avatar webchick
Browse files

#680022 by yched: Fixed template_preprocess() generates invalid CSS classes.

parent 00b044c4
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment