diff --git a/blocks/timeline/classes/output/main.php b/blocks/timeline/classes/output/main.php index bb741b408e4..fd555e02067 100644 --- a/blocks/timeline/classes/output/main.php +++ b/blocks/timeline/classes/output/main.php @@ -69,7 +69,7 @@ class main implements renderable, templatable { public function __construct($order, $filter, $limit) { $this->order = $order ? $order : BLOCK_TIMELINE_SORT_BY_DATES; $this->filter = $filter ? $filter : BLOCK_TIMELINE_FILTER_BY_7_DAYS; - $this->limit = $limit ? $limit : BLOCK_TIMELINE_LIMIT_DEFAULT; + $this->limit = $limit ? $limit : BLOCK_TIMELINE_ACTIVITIES_LIMIT_DEFAULT; } /** diff --git a/blocks/timeline/lib.php b/blocks/timeline/lib.php index adf9083a73a..712684e055a 100644 --- a/blocks/timeline/lib.php +++ b/blocks/timeline/lib.php @@ -38,7 +38,7 @@ define('BLOCK_TIMELINE_FILTER_BY_7_DAYS', 'next7days'); define('BLOCK_TIMELINE_FILTER_BY_30_DAYS', 'next30days'); define('BLOCK_TIMELINE_FILTER_BY_3_MONTHS', 'next3months'); define('BLOCK_TIMELINE_FILTER_BY_6_MONTHS', 'next6months'); -define('BLOCK_TIMELINE_LIMIT_DEFAULT', 2); +define('BLOCK_TIMELINE_ACTIVITIES_LIMIT_DEFAULT', 5); /** * Returns the name of the user preferences as well as the details this plugin uses. @@ -69,7 +69,7 @@ function block_timeline_user_preferences() { $preferences['block_timeline_user_limit_preference'] = array( 'null' => NULL_NOT_ALLOWED, - 'default' => BLOCK_TIMELINE_LIMIT_DEFAULT, + 'default' => BLOCK_TIMELINE_ACTIVITIES_LIMIT_DEFAULT, 'type' => PARAM_INT );