Browse files

MDL-30465 Add br tag when showing the 'Export to Portfolio' text

  • Loading branch information...
1 parent 487b07b commit 879b36fe31f6fefbd4e7f4bcd2efe3e037752003 @andrewnicols andrewnicols committed with Sam Hemelryk Nov 23, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/chat/report.php
View
5 mod/chat/report.php
@@ -238,7 +238,10 @@
);
$button = new portfolio_add_button();
$button->set_callback_options('chat_portfolio_caller', $buttonoptions, '/mod/chat/locallib.php');
- $button->render(PORTFOLIO_ADD_TEXT_LINK);
+ $portfoliobutton = $button->to_html(PORTFOLIO_ADD_TEXT_LINK);
+ if (!empty($portfoliobutton)) {
+ echo '<br />' . $portfoliobutton;
+ }
}
if (has_capability('mod/chat:deletelog', $context)) {
echo "<br /><a href=\"report.php?id=$cm->id&amp;start=$sessionstart&amp;end=$sessionend&amp;deletesession=1\">$strdeletesession</a>";

0 comments on commit 879b36f

Please sign in to comment.