# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/lib/outputrenderers.php --- moodle/lib/outputrenderers.php Base (1.233) +++ moodle/lib/outputrenderers.php Locally Modified (Based On 1.233) @@ -1323,7 +1323,7 @@ //permissions check - can they view the aggregate? if ( ($rating->itemuserid==$USER->id && $rating->settings->permissions->view && $rating->settings->pluginpermissions->view) - || ($rating->itemuserid!=$USER->id + || ((empty($rating->itemuserid) or $rating->itemuserid!=$USER->id) //here in fact I would remove all this line, keep the line below && $rating->settings->permissions->viewany && $rating->settings->pluginpermissions->viewany) ) { $aggregatelabel = ''; @@ -1379,6 +1379,10 @@ } else { $ratinghtml .= $aggregatelabel.get_string('labelsep', 'langconfig').$aggregatehtml; } + + // ignore this comments, it's just for ajax star rating +// $ratinghtml .= '
+// '.$rating->aggregate.'
'; } $formstart = null; Index: moodle/rating/index.php --- moodle/rating/index.php Base (1.13) +++ moodle/rating/index.php Locally Modified (Based On 1.13) @@ -40,6 +40,7 @@ $url->param('sort', $sort); } $PAGE->set_url($url); +$PAGE->set_context($context); if ($popup) { $PAGE->set_pagelayout('popup'); }