echo "<a name='user'></a>";
echo $OUTPUT->heading($heading, 3);
- $baseurl = $CFG->wwwroot.'/tag/index.php?id=' . $tag->id;
-
- print_paging_bar($usercount, $userpage, $perpage, $baseurl.'&', 'userpage');
+ $baseurl = new moodle_url($CFG->wwwroot.'/tag/index.php', array('id' => $tag->id));
+ $pagingbar = moodle_paging_bar::make($totalcount, $page, $perpage, $baseurl);
+ $pagingbar->pagevar = 'userpage';
+ echo $OUTPUT->paging_bar($pagingbar);
tag_print_tagged_users_table($tag, $userpage * $perpage, $perpage);
print_box_end();
}
$output .= '</ul>';
$output .= '<div> </div>'; // <-- small layout hack in order to look good in Firefox
- $output .= print_paging_bar($count, $page, $perpage, $baseurl .'&', 'page', false, true);
+ $output .= $OUTPUT->paging_bar(moodle_paging_bar::make($count, $page, $perpage, $baseurl));
}
else { //no results were found!!
$output .= $OUTPUT->heading(get_string('noresultsfor', 'tag', htmlspecialchars($query)), 3, 'main');