Merge branch 'MDL-70071-311' of https://github.com/Chocolate-lightning/moodle into MOODLE_311_STABLE
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user