Commit 47de2578 authored by badrange's avatar badrange Committed by frjo

Issue #2061207 by badrange: Links in Colorbox imagefield are sometimes broken...

Issue #2061207 by badrange: Links in Colorbox imagefield are sometimes broken (for instance while using cdn) - url query parameters get urlencoded.
parent db3be4f4
......@@ -135,16 +135,18 @@ function theme_colorbox_imagefield($variables) {
$image = theme('image', $variables['image']);
}
$options = array(
$options = drupal_parse_url($variables['path']);
$options += array(
'html' => TRUE,
'attributes' => array(
'title' => $variables['title'],
'class' => $class,
'rel' => $variables['gid'],
)
),
'language' => array('language' => NULL),
);
return l($image, $variables['path'], $options);
return l($image, $options['path'], $options);
}
/**
......
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