]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed embed longtext menu registration
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 1 Mar 2011 21:11:48 +0000 (21:11 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 1 Mar 2011 21:11:48 +0000 (21:11 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8540 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/embed/start.php

index f071657a9150a1607f503b2851d4edd6df24f075..edfcfdd3c324ace14cf3cd6710c188f9075821c4 100644 (file)
@@ -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;
 }