Commit e03cac18 authored by alexpott's avatar alexpott

Issue #2002868 by baldwinlouie: Rename Views method has_more_records() to hasMoreRecords().

parent 876ee0a3
......@@ -2422,7 +2422,7 @@ public function renderPager() {
* Render the 'more' link
*/
public function renderMoreLink() {
if ($this->usesMore() && ($this->useMoreAlways() || (!empty($this->view->pager) && $this->view->pager->has_more_records()))) {
if ($this->usesMore() && ($this->useMoreAlways() || (!empty($this->view->pager) && $this->view->pager->hasMoreRecords()))) {
$path = $this->getPath();
if ($this->getOption('link_display') == 'custom_url' && $override_path = $this->getOption('link_url')) {
......
......@@ -234,7 +234,7 @@ function render($input) { }
*
* This is primarily used to control the display of a more link.
*/
function has_more_records() {
public function hasMoreRecords() {
return $this->get_items_per_page()
&& $this->total_items > (intval($this->current_page) + 1) * $this->get_items_per_page();
}
......
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