Skip to content

Commit

Permalink
MDL-19823 Converted calls to print_paging_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 7, 2009
1 parent 9c7886e commit 928a93d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tag/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@
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.'&amp;', '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();
}
Expand Down
2 changes: 1 addition & 1 deletion tag/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function tag_print_search_results($query, $page, $perpage, $return=false) {
$output .= '</ul>';
$output .= '<div>&nbsp;</div>'; // <-- small layout hack in order to look good in Firefox

$output .= print_paging_bar($count, $page, $perpage, $baseurl .'&amp;', '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');
Expand Down

0 comments on commit 928a93d

Please sign in to comment.