summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2013-01-30 23:44:12 (GMT)
committer Earl Miles2013-01-30 23:44:12 (GMT)
commit4b4d7f9260c0bb692a0620c817d36a0cf84c467a (patch)
tree20423ade66fa3b8f424597d44b2a679d92416dd4
parentd7e5b38d827c433b3ea616eeb6327e2f09c54fd9 (diff)
Issue #1599374 by caschbre: Use ctools cleanstring on panel template suggestions to ensure no special characters end up in template suggestion names.
-rw-r--r--panels.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/panels.module b/panels.module
index 2ee42a7..795bcd9 100644
--- a/panels.module
+++ b/panels.module
@@ -1280,7 +1280,7 @@ function template_preprocess_panels_pane(&$vars) {
// Add template file suggestion for content type and sub-type.
$vars['theme_hook_suggestions'][] = $base . $delimiter . $content->type;
- $vars['theme_hook_suggestions'][] = $base . $delimiter . strtr($content->type, '-', '_') . $delimiter . strtr($content->subtype, '-', '_');
+ $vars['theme_hook_suggestions'][] = $base . $delimiter . strtr(ctools_cleanstring($content->type, array('lower case' => TRUE)), '-', '_') . $delimiter . strtr(ctools_cleanstring($content->subtype, array('lower case' => TRUE)), '-', '_');
$vars['pane_prefix'] = !empty($content->pane_prefix) ? $content->pane_prefix : '';
$vars['pane_suffix'] = !empty($content->pane_suffix) ? $content->pane_suffix : '';