summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThilo Wawrzik2007-07-12 19:22:50 (GMT)
committer Thilo Wawrzik2007-07-12 19:22:50 (GMT)
commit94e98d78716f2bb45e21970e9dbb92423503f328 (patch)
treefd721e05b1036b96a05e80efb95e2e72bfa84208
parentdc6f674c363ffd5b20b6fa128c734e26c5d904b6 (diff)
- bugfix: workaround for broken image frames (#145218)
-rw-r--r--gallery_base.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gallery_base.inc b/gallery_base.inc
index 401cf1d..15d80fd 100644
--- a/gallery_base.inc
+++ b/gallery_base.inc
@@ -278,6 +278,8 @@ function gallery_set_css($css) {
foreach ($css as $include) {
if (!in_array(($md5 = md5($include)), $css_memory)) {
$css_memory[] = $md5;
+ // workaround for urls containing '&' with @import directive (#157978)
+ $include = str_replace('&g2_frames', '&g2_frames', $include);
if (substr($include, 0, 6) == '<style') {
// drupal_add_css() does not support inline styles
drupal_set_html_head($include);