aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-03 02:09:21 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-03 02:09:21 +0000
commit826c37f10cf78859756f246938031b755803d7a7 (patch)
tree4029ce01c041259b254121f7ac25f662a1633254 /mod/embed/start.php
parent8a9f243e4353f96ddca9663dda2a94e9881c6434 (diff)
downloadelgg-826c37f10cf78859756f246938031b755803d7a7.tar.gz
elgg-826c37f10cf78859756f246938031b755803d7a7.tar.bz2
Refs #3360 #2911 applying ashleyward's patch for embed plugin - thanks!
git-svn-id: http://code.elgg.org/elgg/trunk@9135 36083f99-b078-4883-b0ff-0f9b5a30f544
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;
}