Permalink
Browse files

Merge branch 'MDL-26272' of git://github.com/stronk7/moodle

  • Loading branch information...
2 parents c1a9749 + 195a084 commit dedda4abc3135590dda81225fa32ce408a3838e2 Sam Hemelryk committed Feb 7, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 mod/data/view.php
  2. +1 −1 mod/forum/lib.php
  3. +1 −1 mod/glossary/view.php
View
@@ -666,7 +666,7 @@
require_once($CFG->dirroot.'/rating/lib.php');
if ($data->assessed!=RATING_AGGREGATE_NONE) {
$ratingoptions = new stdclass();
- $ratingoptions->context = $cm->context;
+ $ratingoptions->context = $context;
$ratingoptions->items = $records;
$ratingoptions->aggregate = $data->assessed;//the aggregation method
$ratingoptions->scaleid = $data->scale;
View
@@ -5318,7 +5318,7 @@ function forum_print_discussion($course, $cm, $forum, $discussion, $post, $mode,
//load ratings
if ($forum->assessed!=RATING_AGGREGATE_NONE) {
$ratingoptions = new stdclass();
- $ratingoptions->context = $cm->context;
+ $ratingoptions->context = $modcontext;
$ratingoptions->items = $posts;
$ratingoptions->aggregate = $forum->assessed;//the aggregation method
$ratingoptions->scaleid = $forum->scale;
View
@@ -395,7 +395,7 @@
require_once($CFG->dirroot.'/rating/lib.php');
if ($glossary->assessed!=RATING_AGGREGATE_NONE) {
$ratingoptions = new stdclass();
- $ratingoptions->context = $cm->context;
+ $ratingoptions->context = $context;
$ratingoptions->items = $allentries;
$ratingoptions->aggregate = $glossary->assessed;//the aggregation method
$ratingoptions->scaleid = $glossary->scale;

0 comments on commit dedda4a

Please sign in to comment.