aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-09 19:32:29 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-09 19:32:29 +0000
commit9bc3a4f6794b88944f983c1b44b2a1cbd89f2c98 (patch)
treedc20ae68c90be2272bac20d38eb8b9e971606262 /mod
parent78dcae873b1690c67d14ad7c8adada32183e3bd3 (diff)
downloadelgg-9bc3a4f6794b88944f983c1b44b2a1cbd89f2c98.tar.gz
elgg-9bc3a4f6794b88944f983c1b44b2a1cbd89f2c98.tar.bz2
Web services tab now default embed tab if ecml is enabled.
git-svn-id: http://code.elgg.org/elgg/trunk@6681 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-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>