]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Web services tab now default embed tab if ecml is enabled.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 9 Jul 2010 19:32:29 +0000 (19:32 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 9 Jul 2010 19:32:29 +0000 (19:32 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6681 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/embed/views/default/embed/link.php

index 6740b8e1a7f8a053af74049231062994ad970077..5b69ffdcc3b2799d4ceae77a0a822e81b19f4020 100644 (file)
@@ -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>