aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-18 22:14:42 -0400
committercash <cash.costello@gmail.com>2011-06-18 22:14:42 -0400
commit1f6b5cc6ac57ead98bbaa6c85323a69b6128629e (patch)
tree105e5bdb16dbab41ab4b26830a7d01949a5eb09b
parent780d9cb45f90158fdb843c41c8c1203ebdb06a3f (diff)
downloadelgg-1f6b5cc6ac57ead98bbaa6c85323a69b6128629e.tar.gz
elgg-1f6b5cc6ac57ead98bbaa6c85323a69b6128629e.tar.bz2
fixed issue with embedding a file in an embedded file
-rw-r--r--mod/embed/start.php4
1 files changed, 4 insertions, 0 deletions
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',