Merge branch 'MDL-26272' of git://github.com/stronk7/moodle
This commit is contained in:
+1
-1
@@ -666,7 +666,7 @@ if ($showactivity) {
|
||||
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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
@@ -395,7 +395,7 @@ if ($allentries) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user