mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-04 15:18:39 +02:00
Merge pull request #2815 from Firesphere/patch-2
Don't show next for anything above TotalPages
This commit is contained in:
commit
d0ec30dd26
@ -353,7 +353,7 @@ class PaginatedList extends SS_ListDecorator {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function NotLastPage() {
|
public function NotLastPage() {
|
||||||
return $this->CurrentPage() != $this->TotalPages();
|
return $this->CurrentPage() < $this->TotalPages();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -421,4 +421,4 @@ class PaginatedList extends SS_ListDecorator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user