Skip to content

Commit

Permalink
MDL-19792 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 ecd035a commit 3bfcfdc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function blog_print_html_formatted_entries($postid, $filtertype, $filterselect,

$totalentries = get_viewable_entry_count($postid, $bloglimit, $start, $filtertype, $filterselect, $tagid, $tag, $sort='created DESC');
$blogEntries = blog_fetch_entries($postid, $bloglimit, $start, $filtertype, $filterselect, $tagid, $tag, $sort='created DESC', true);

$pagingbar = moodle_paging_bar::make($totalentries, $blogpage, $bloglimit, get_baseurl($filtertype, $filterselect));
$pagingbar->pagevar = 'blogpage';
echo $OUTPUT->paging_bar($pagingbar);
Expand All @@ -96,8 +96,9 @@ function blog_print_html_formatted_entries($postid, $filtertype, $filterselect,
blog_print_entry($blogEntry, 'list', $filtertype, $filterselect); //print this entry.
$count++;
}

print_paging_bar($totalentries, $blogpage, $bloglimit, get_baseurl($filtertype, $filterselect), 'blogpage');
$pagingbar = moodle_paging_bar::make($totalentries, $blogpage, $bloglimit, get_baseurl($filtertype, $filterselect));
$pagingbar->pagevar = 'blogpage';
echo $OUTPUT->paging_bar($pagingbar);

if (!$count) {
print '<br /><div style="text-align:center">'. get_string('noentriesyet', 'blog') .'</div><br />';
Expand Down

0 comments on commit 3bfcfdc

Please sign in to comment.