Commit 8a86fa02 authored by webchick's avatar webchick
Browse files

Issue #2002952 by laszlocore, Dan Reinders, tvlooy, vito_a: Rename Views...

Issue #2002952 by laszlocore, Dan Reinders, tvlooy, vito_a: Rename Views method update_page_info() to updatePageInfo().
parent 8646f286
......@@ -183,7 +183,7 @@ public function executeCountQuery(&$count_query) {
$this->total_items -= $this->options['offset'];
}
$this->update_page_info();
$this->updatePageInfo();
return $this->total_items;
}
......@@ -191,7 +191,7 @@ public function executeCountQuery(&$count_query) {
* If there are pagers that need global values set, this method can
* be used to set them. It will be called when the count query is run.
*/
function update_page_info() {
public function updatePageInfo() {
}
......
......@@ -292,7 +292,7 @@ public function getPagerTotal() {
* items available and to update the current page if the requested
* page is out of range.
*/
function update_page_info() {
public function updatePageInfo() {
if (!empty($this->options['total_pages'])) {
if (($this->options['total_pages'] * $this->options['items_per_page']) < $this->total_items) {
$this->total_items = $this->options['total_pages'] * $this->options['items_per_page'];
......
......@@ -1181,7 +1181,7 @@ public function execute($display_id = NULL) {
if ($cache->cache_get('results')) {
if ($this->pager->usePager()) {
$this->pager->total_items = $this->total_rows;
$this->pager->update_page_info();
$this->pager->updatePageInfo();
}
}
else {
......
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