portfolio MDL-21079 fixed a regression caused by massive refactoring of where portfolio callers live
This commit is contained in:
+2
-2
@@ -4373,7 +4373,7 @@ function forum_print_attachments($post, $cm, $type) {
|
||||
// Image attachments don't get printed as links
|
||||
$imagereturn .= "<br /><img src=\"$path\" alt=\"\" />";
|
||||
if ($canexport) {
|
||||
$button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id, 'attachment' => $file->get_id()));
|
||||
$button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id, 'attachment' => $file->get_id()), '/mod/forum/locallib.php');
|
||||
$button->set_format_by_file($file);
|
||||
$imagereturn .= $button->to_html(PORTFOLIO_ADD_ICON_LINK);
|
||||
}
|
||||
@@ -4381,7 +4381,7 @@ function forum_print_attachments($post, $cm, $type) {
|
||||
$output .= "<a href=\"$path\">$iconimage</a> ";
|
||||
$output .= filter_text("<a href=\"$path\">".s($filename)."</a>");
|
||||
if ($canexport) {
|
||||
$button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id, 'attachment' => $file->get_id()));
|
||||
$button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id, 'attachment' => $file->get_id()), '/mod/forum/locallib.php');
|
||||
$button->set_format_by_file($file);
|
||||
$output .= $button->to_html(PORTFOLIO_ADD_ICON_LINK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user