summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 8fb6a5acb..63af79711 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -2580,6 +2580,7 @@ function template_preprocess_maintenance_page(&$variables) {
* pluggable template engine. Uses the region name to generate a template file
* suggestions. If none are found, the default region.tpl.php is used.
*
+ * @see drupal_region_class()
* @see region.tpl.php
*/
function template_preprocess_region(&$variables) {
@@ -2587,7 +2588,7 @@ function template_preprocess_region(&$variables) {
$variables['content'] = $variables['elements']['#children'];
$variables['region'] = $variables['elements']['#region'];
- $region = 'region-' . str_replace('_', '-', $variables['region']);
+ $region = drupal_region_class($variables['region']);
$variables['classes_array'][] = $region;
$variables['template_files'][] = $region;
}