This commit is contained in:
Jun Pataleta 2024-06-13 12:03:27 +08:00
commit 409a36265e
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ class discussion_list {
$exportedposts = ($this->postprocessfortemplate) ($discussions, $user, $forum);
}
$baseurl = new \moodle_url($PAGE->url, array('o' => $sortorder));
$baseurl = new \moodle_url($PAGE->url, ['o' => $sortorder, 's' => $pagesize]);
$forumview = array_merge(
$forumview,

View File

@ -41,7 +41,7 @@ $showall = optional_param('showall', '', PARAM_INT);
$pageno = optional_param('page', 0, PARAM_INT);
$search = optional_param('search', '', PARAM_CLEAN);
$pageno = optional_param('p', $pageno, PARAM_INT);
$pagesize = optional_param('s', 0, PARAM_INT);
$pagesize = optional_param('s', $CFG->forum_manydiscussions ?? 0, PARAM_INT);
$sortorder = optional_param('o', null, PARAM_INT);
if (!$cmid && !$forumid) {