]> git.mjollnir.org Git - moodle.git/commitdiff
portfolio MDL-21079 fixed a regression caused by massive refactoring of where portfol...
authorPenny Leach <penny@liip.ch>
Sat, 12 Dec 2009 14:18:34 +0000 (14:18 +0000)
committerPenny Leach <penny@liip.ch>
Sat, 12 Dec 2009 14:18:34 +0000 (14:18 +0000)
mod/forum/lib.php

index 29ed8ab0a15d193993e4f5f4803996b7390f2731..f46492527933cdbbbe870d5ff53521e20bde4e16 100644 (file)
@@ -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);
                     }