aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 21:11:48 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 21:11:48 +0000
commit81bdd347d4d2ff37347c8fea02a72c4c65c621e2 (patch)
treee068fe04de8eb60fdac079ab6c14d3f632415991 /mod
parent728dd5418d42aef6ff76996ff262f133fa1c7a2f (diff)
downloadelgg-81bdd347d4d2ff37347c8fea02a72c4c65c621e2.tar.gz
elgg-81bdd347d4d2ff37347c8fea02a72c4c65c621e2.tar.bz2
fixed embed longtext menu registration
git-svn-id: http://code.elgg.org/elgg/trunk@8540 36083f99-b078-4883-b0ff-0f9b5a30f544
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;
}