Merge branch 'MDL-70071-311' of https://github.com/Chocolate-lightning/moodle into MOODLE_311_STABLE

This commit is contained in:
Víctor Déniz
2022-11-03 20:38:58 +00:00
3 changed files with 5 additions and 3 deletions
@@ -435,7 +435,8 @@ class discussion {
get_string('thisforumisthrottled', 'forum', [
'blockafter' => $forum->get_block_after(),
'blockperiod' => get_string('secondstotime' . $forum->get_block_period())
])
]),
notification::NOTIFY_INFO
))->set_show_closebutton();
}
@@ -353,7 +353,8 @@ class discussion_list {
get_string('thisforumisthrottled', 'forum', [
'blockafter' => $forum->get_block_after(),
'blockperiod' => get_string('secondstotime' . $forum->get_block_period())
])
]),
notification::NOTIFY_INFO
))->set_show_closebutton();
}
+1 -1
View File
@@ -107,7 +107,7 @@ class mod_forum_post_form extends moodleform {
// Here we want to display a warning if they can still post but have reached the warning threshold.
if ($thresholdwarning->canpost) {
$message = get_string($thresholdwarning->errorcode, $thresholdwarning->module, $thresholdwarning->additional);
$mform->addElement('html', $OUTPUT->notification($message));
$mform->addElement('html', $OUTPUT->notification($message, \core\output\notification::NOTIFY_INFO));
}
}