aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/embed/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index f071657a9..edfcfdd3c 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -30,14 +30,14 @@ function embed_longtext_menu($hook, $type, $items, $vars) {
$active_section = '';
}
- $items[] = array(
+ $items[] = ElggMenuItem::factory(array(
'name' => 'embed',
'href' => "pg/embed/?{$active_section}internal_name={$vars['name']}",
'text' => elgg_echo('media:insert'),
'rel' => 'facebox',
'class' => 'elgg-longtext-control',
'weight' => 1,
- );
+ ));
return $items;
}