Skip to content
Browse files

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

  • Loading branch information...
1 parent 9928cc8 commit c04b01f46f3289515d88170b6ab0aefdbbd5024f @andyjdavis andyjdavis committed with nebgor Aug 16, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 mod/data/view.php
View
9 mod/data/view.php
@@ -655,10 +655,13 @@
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);

0 comments on commit c04b01f

Please sign in to comment.
Something went wrong with that request. Please try again.