MDL-63817 block_timeline: Persist page limits when sorting by dates
[moodle.git] / blocks / timeline / block_timeline.php
index 03e7230..ad7aaa2 100644 (file)
@@ -52,8 +52,9 @@ class block_timeline extends block_base {
 
         $sort = get_user_preferences('block_timeline_user_sort_preference');
         $filter = get_user_preferences('block_timeline_user_filter_preference');
+        $limit = get_user_preferences('block_timeline_user_limit_preference');
 
-        $renderable = new \block_timeline\output\main($sort, $filter);
+        $renderable = new \block_timeline\output\main($sort, $filter, $limit);
         $renderer = $this->page->get_renderer('block_timeline');
 
         $this->content = (object) [