From 8a47abcd8a64e2479715fe12e56a133bfb240c55 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 9 Aug 2016 12:10:31 +0800 Subject: [PATCH] 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 --- theme/noname/classes/output/core_renderer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/theme/noname/classes/output/core_renderer.php b/theme/noname/classes/output/core_renderer.php index d771e12b274..a0cc1826501 100644 --- a/theme/noname/classes/output/core_renderer.php +++ b/theme/noname/classes/output/core_renderer.php @@ -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)); }