Commit 8ee63be5 authored by alexpott's avatar alexpott

Issue #2003452 by baldwinlouie: Rename Views method get_pager_total() to getPagerTotal().

parent be273778
......@@ -276,7 +276,7 @@ function set_current_page($number = NULL) {
$this->current_page = max(0, intval($pager_page_array[$this->options['id']]));
}
function get_pager_total() {
public function getPagerTotal() {
if ($items_per_page = intval($this->get_items_per_page())) {
return ceil($this->total_items / $items_per_page);
}
......@@ -309,7 +309,7 @@ function update_page_info() {
// Set the item count for the pager.
$pager_total_items[$this->options['id']] = $this->total_items;
// Calculate and set the count of available pages.
$pager_total[$this->options['id']] = $this->get_pager_total();
$pager_total[$this->options['id']] = $this->getPagerTotal();
// See if the requested page was within range:
if ($this->current_page >= $pager_total[$this->options['id']]) {
......
Markdown is supported
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