MDL-55496 theme_noname: Limit the number of pagination pages

The pagination bar is not usable showing > 10 links forwards and backwards.

Part of MDL-55071
This commit is contained in:
Damyon Wiese
2016-09-23 10:53:29 +01:00
committed by Dan Poltawski
parent b0da86e03b
commit 8a47abcd8a
@@ -292,6 +292,8 @@ class core_renderer extends \core_renderer {
* @return string HTML
*/
protected function render_paging_bar(paging_bar $pagingbar) {
// Any more than 10 is not usable and causes wierd wrapping of the pagination in this theme.
$pagingbar->maxdisplay = 10;
return $this->render_from_template('core/paging_bar', $pagingbar->export_for_template($this));
}