Skip to content

Commit 8a47abc

Browse files
Damyon Wiesedanpoltawski
authored andcommitted
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
1 parent b0da86e commit 8a47abc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

theme/noname/classes/output/core_renderer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ protected function render_single_select(single_select $select) {
292292
* @return string HTML
293293
*/
294294
protected function render_paging_bar(paging_bar $pagingbar) {
295+
// Any more than 10 is not usable and causes wierd wrapping of the pagination in this theme.
296+
$pagingbar->maxdisplay = 10;
295297
return $this->render_from_template('core/paging_bar', $pagingbar->export_for_template($this));
296298
}
297299

0 commit comments

Comments
 (0)