From 81bdd347d4d2ff37347c8fea02a72c4c65c621e2 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 1 Mar 2011 21:11:48 +0000 Subject: fixed embed longtext menu registration git-svn-id: http://code.elgg.org/elgg/trunk@8540 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/embed/start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/embed/start.php') 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; } -- cgit v1.2.3