From: Penny Leach Date: Sat, 12 Dec 2009 14:18:34 +0000 (+0000) Subject: portfolio MDL-21079 fixed a regression caused by massive refactoring of where portfol... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e032f29d92241a8f75dfba725c97054d64483f01;p=moodle.git portfolio MDL-21079 fixed a regression caused by massive refactoring of where portfolio callers live --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 29ed8ab0a1..f464925279 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4373,7 +4373,7 @@ function forum_print_attachments($post, $cm, $type) { // Image attachments don't get printed as links $imagereturn .= "
\"\""; 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 .= "$iconimage "; $output .= filter_text("".s($filename).""); 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); }