aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/start.php')
-rw-r--r--mod/embed/start.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index 5efd5c8c5..f6f49a53f 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -34,7 +34,7 @@ function embed_longtext_menu($hook, $type, $items, $vars) {
$items[] = ElggMenuItem::factory(array(
'name' => 'embed',
- 'href' => "embed?{$active_section}internal_name={$vars['name']}",
+ 'href' => "embed?{$active_section}internal_id={$vars['id']}",
'text' => elgg_echo('media:insert'),
'rel' => 'facebox',
'link_class' => 'elgg-longtext-control',
@@ -73,13 +73,13 @@ function embed_page_handler($page) {
elgg_sort_3d_array_by_value($sections, 'name');
elgg_sort_3d_array_by_value($upload_sections, 'name');
$active_section = get_input('active_section', NULL);
- $internal_name = get_input('internal_name', NULL);
+ $internal_id = get_input('internal_id', NULL);
echo elgg_view('embed/embed', array(
'sections' => $sections,
'active_section' => $active_section,
'upload_sections' => $upload_sections,
- 'internal_name' => $internal_name
+ 'internal_id' => $internal_id
));
break;
}