aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/views/default')
-rw-r--r--mod/embed/views/default/embed/link.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/embed/views/default/embed/link.php b/mod/embed/views/default/embed/link.php
index 6740b8e1a..5b69ffdcc 100644
--- a/mod/embed/views/default/embed/link.php
+++ b/mod/embed/views/default/embed/link.php
@@ -2,5 +2,13 @@
/**
* Displays an "Embed media" link in longtext inputs.
*/
+
+// yeah this is naughty. embed and ecml might want to merge.
+if (is_plugin_enabled('ecml')) {
+ $active_section = 'active_section=web_services&';
+} else {
+ $active_section = '';
+}
+
?>
-<a class="longtext_control small link" href="<?php echo $vars['url'] . 'pg/embed'; ?>?internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>
+<a class="longtext_control small link" href="<?php echo $vars['url'] . 'pg/embed'; ?>?<?php echo $active_section; ?>internal_name=<?php echo $vars['internalname']; ?>" rel="facebox"><?php echo elgg_echo('media:insert'); ?></a>