Skip to content

Commit

Permalink
MDL-15758 - commenting out some forum calls until the portfolio is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
mjollnir_ committed Jul 28, 2008
1 parent f5b5732 commit 64994e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/forum/discuss.php
Expand Up @@ -161,7 +161,7 @@
$p = array(
'discussionid' => $discussion->id,
);
$portfolio = portfolio_add_button('forum_portfolio_caller', $p, '/mod/forum/lib.php', true, true);
//$portfolio = portfolio_add_button('forum_portfolio_caller', $p, '/mod/forum/lib.php', true, true);
}
echo '<table width="100%" class="discussioncontrols"><tr><td>';

Expand Down
12 changes: 9 additions & 3 deletions mod/forum/lib.php
Expand Up @@ -3006,7 +3006,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
$p = array(
'postid' => $post->id,
);
$commands[] = portfolio_add_button('forum_portfolio_caller', $p, '/mod/forum/lib.php', false, true);
//$commands[] = portfolio_add_button('forum_portfolio_caller', $p, '/mod/forum/lib.php', false, true);
}

echo '<div class="commands">';
Expand Down Expand Up @@ -6933,7 +6933,7 @@ function __construct($callbackargs) {
if (!$this->post) {
print_error('attachmentsnopost', 'forum');
}
if (!get_directory_list(forum_file_area($this->post->id))) {
if (!get_directory_list(forum_file_area($this->post))) {
print_error('noattachments', 'forum');
}
}
Expand All @@ -6944,6 +6944,12 @@ function get_return_url() {
return $CFG->wwwroot . '/mod/forum/discuss.php?d=' . $this->cm->id;
}

function get_navigation() {
$navlinks = array();
$navlinks[] = array('name' => format_string($this->discussion->name), 'link' => 'discuss.php?d=' . $this->discussion->id, 'type' => 'title');
return array($navlinks, $this->cm);
}

function prepare_package($tempdir) {
global $CFG;
if ($this->attachment) {
Expand All @@ -6954,7 +6960,7 @@ function prepare_package($tempdir) {
}
return true;
}
print_error('TODO');
portfolio_exporter::raise_error('TODO - see MDL-15758');
// @todo see MDL-15758
}

Expand Down

0 comments on commit 64994e2

Please sign in to comment.