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

This commit is contained in:
Andrew Robert Nicols 2011-11-23 14:07:52 +00:00
parent 6be90ce05f
commit 9e23487a10

View File

@ -239,7 +239,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>";