From 1f6b5cc6ac57ead98bbaa6c85323a69b6128629e Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 18 Jun 2011 22:14:42 -0400 Subject: fixed issue with embedding a file in an embedded file --- mod/embed/start.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/embed/start.php') diff --git a/mod/embed/start.php b/mod/embed/start.php index e6fc5551b..f6f1acc57 100644 --- a/mod/embed/start.php +++ b/mod/embed/start.php @@ -32,6 +32,10 @@ function embed_init() { * @return array */ function embed_longtext_menu($hook, $type, $items, $vars) { + + if (elgg_get_context() == 'embed') { + return $items; + } $items[] = ElggMenuItem::factory(array( 'name' => 'embed', -- cgit v1.2.3