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

This commit is contained in:
Andrew Robert Nicols
2011-11-28 18:30:45 +13:00
committed by Sam Hemelryk
parent 487b07bcc1
commit 879b36fe31
+4 -1
View File
@@ -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>";