summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/colorbox_handler_field_colorbox.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/colorbox_handler_field_colorbox.inc b/views/colorbox_handler_field_colorbox.inc
index 7984ee4..205d099 100644
--- a/views/colorbox_handler_field_colorbox.inc
+++ b/views/colorbox_handler_field_colorbox.inc
@@ -162,10 +162,10 @@ If you would like to have the characters %5B and %5D please use the html entity
$tokens = $this->get_render_tokens($this->options['alter']);
$popup = filter_xss_admin($this->options['popup']);
$caption = filter_xss_admin($this->options['caption']);
+ $gallery = filter_xss_admin($this->options['custom_gid']);
$popup = strtr($popup, $tokens);
$caption = strtr($caption, $tokens);
- $gallery = strtr($this->options['custom_gid'] , $tokens);
- $gallery = drupal_html_class($gallery);
+ $gallery = drupal_html_class(strtr($gallery, $tokens));
// Return nothing if popup is empty.
if (empty($popup)) {