From f90b116b99737ad38eba0e770759c61913b5249b Mon Sep 17 00:00:00 2001 From: Matt Beckett Date: Mon, 20 Aug 2012 12:24:33 -0600 Subject: fixes #4818 - generates unique rel attribute to prevent gallery navigation on embed lightbox content --- mod/embed/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/embed/start.php') 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, )); -- cgit v1.2.3