Commit db64d3aa authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix pagination for institution/group views

parent ecbe84ae
......@@ -47,7 +47,7 @@ $smarty->assign('heading', $title);
$data = View::get_myviews_data($limit, $offset, null, 'mahara');
$pagination = build_pagination(array(
'url' => get_config('wwwroot') . 'view/?',
'url' => get_config('wwwroot') . 'admin/site/views.php',
'count' => $data->count,
'limit' => $limit,
'offset' => $offset,
......
......@@ -62,7 +62,7 @@ else {
$userid = $USER->get('id');
$pagination = build_pagination(array(
'url' => get_config('wwwroot') . 'view/?',
'url' => get_config('wwwroot') . 'view/groupviews.php?group='.$group->id,
'count' => $data->count,
'limit' => $limit,
'offset' => $offset,
......
......@@ -64,7 +64,7 @@ $smarty->assign('heading', $title);
$data = View::get_myviews_data($limit, $offset, null, $institution);
$pagination = build_pagination(array(
'url' => get_config('wwwroot') . 'view/?',
'url' => get_config('wwwroot') . 'view/institutionviews.php?institution='.$institution,
'count' => $data->count,
'limit' => $limit,
'offset' => $offset,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment