aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2012-08-25 22:11:07 -0700
committerEvan Winslow <evan@elgg.org>2012-08-25 22:11:07 -0700
commit80b75e049dabbf1318fe58d80e957f334faa9a76 (patch)
treebea75da599824752bcda80da5bd9444278151b1f /mod
parent3325f3c3d07836f9afe122cfc3aa72377f6bd35e (diff)
parentf90b116b99737ad38eba0e770759c61913b5249b (diff)
downloadelgg-80b75e049dabbf1318fe58d80e957f334faa9a76.tar.gz
elgg-80b75e049dabbf1318fe58d80e957f334faa9a76.tar.bz2
Merge pull request #367 from beck24/embed-fancybox-navigation
Fixes #4818: Generates unique rel attribute to prevent gallery navigation on embed lightbox content.
Diffstat (limited to 'mod')
-rw-r--r--mod/embed/start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index a3ccab66b..e8a3f8c14 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -47,7 +47,7 @@ function embed_longtext_menu($hook, $type, $items, $vars) {
'name' => 'embed',
'href' => $url,
'text' => elgg_echo('embed:media'),
- 'rel' => 'lightbox',
+ 'rel' => "embed-lightbox-{$vars['id']}",
'link_class' => "elgg-longtext-control elgg-lightbox embed-control embed-control-{$vars['id']}",
'priority' => 10,
));