Commit ffc16c22 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1703787: Pagination failing for site pages



Due to the json file not using the correct call to site templates

It was updated for the initial page load but not for the json load of
pagination results

behatnotneeded

Change-Id: Icea835bc6252df05aac8b3a6cf367d1f2364f7ea
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 9f5861e4
......@@ -73,7 +73,7 @@ if (!empty($groupid)) {
else if (!empty($institution)) {
if ($institution == 'mahara') {
define('ADMIN', 1);
$templateviews = View::get_template_views();
$templateviews = View::get_site_template_views();
list($searchform, $data, $pagination) = View::views_by_owner(null, 'mahara');
if ($data->data && $offset == '0') {
$data->data = array_merge($templateviews, $data->data);
......
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