]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed issue with embedding a file in an embedded file
authorcash <cash.costello@gmail.com>
Sun, 19 Jun 2011 02:14:42 +0000 (22:14 -0400)
committercash <cash.costello@gmail.com>
Sun, 19 Jun 2011 02:14:42 +0000 (22:14 -0400)
mod/embed/start.php

index e6fc5551b32e40890487132a5a0f888ccb7e5c45..f6f1acc57210c70d693c4db2913b31ed7836c0a6 100644 (file)
@@ -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',