aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/start.php
diff options
context:
space:
mode:
authorMatt Beckett <beck24@gmail.com>2012-08-20 12:24:33 -0600
committerMatt Beckett <beck24@gmail.com>2012-08-20 12:24:33 -0600
commitf90b116b99737ad38eba0e770759c61913b5249b (patch)
tree9fa6f036354018108c2d0fb7430bf86a45a83a3d /mod/embed/start.php
parent4859e56edf1b17092751a6e9d7d89b03113253db (diff)
downloadelgg-f90b116b99737ad38eba0e770759c61913b5249b.tar.gz
elgg-f90b116b99737ad38eba0e770759c61913b5249b.tar.bz2
fixes #4818 - generates unique rel attribute to prevent gallery navigation on embed lightbox content
Diffstat (limited to 'mod/embed/start.php')
-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,
));