1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-12 03:05:42 +02:00

MDL-27640 rating: altered the return url provided by mod_data to ratings

This commit is contained in:
Andrew Davis (andyjdavis) 2011-08-16 17:08:47 +08:00 committed by Aparup Banerjee
parent 9928cc8aa2
commit c04b01f46f

@ -655,10 +655,13 @@ if ($showactivity) {
echo $OUTPUT->notification(get_string('foundrecords', 'data', $a), 'notifysuccess');
}
if ($mode == 'single') { // Single template
$baseurl = 'view.php?d=' . $data->id . '&mode=single&';
if ($mode == 'single') { // Single template
$baseurl = 'view.php?d=' . $data->id . '&mode=single&';
if (!empty($search)) {
$baseurl .= 'filter=1&';
$baseurl .= 'filter=1&';
}
if (!empty($page)) {
$baseurl .= 'page=' . $page;
}
echo $OUTPUT->paging_bar($totalcount, $page, $nowperpage, $baseurl);