Permalink
Browse files

Merge branch 'MDL-31753' of git://github.com/enovation/moodle into MO…

…ODLE_22_STABLE
  • Loading branch information...
2 parents f2a044d + 8435db0 commit 12b7b430a43f7f0570b352f188e10fb7f1f8733e @stronk7 stronk7 committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 blocks/community/block_community.php
@@ -71,7 +71,7 @@ function get_content() {
$icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/group'),
'class' => 'icon', 'alt' => get_string('addcourse', 'block_community')));
$addcourseurl = new moodle_url('/blocks/community/communitycourse.php',
- array('add' => true, 'courseid' => $coursecontext->instanceid));
+ array('add' => true, 'courseid' => $this->page->course->id));
$searchlink = html_writer::tag('a', $icon . ' ' . get_string('addcourse', 'block_community'),
array('href' => $addcourseurl->out(false)));
$this->content->items[] = $searchlink;
@@ -91,7 +91,7 @@ function get_content() {
'alt' => get_string('removecommunitycourse', 'block_community')));
$deleteurl = new moodle_url('/blocks/community/communitycourse.php',
array('remove' => true,
- 'courseid' => $coursecontext->instanceid,
+ 'courseid' => $this->page->course->id,
'communityid' => $course->id, 'sesskey' => sesskey()));
$deleteatag = html_writer::tag('a', $deleteicon, array('href' => $deleteurl));

0 comments on commit 12b7b43

Please sign in to comment.