mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-66461 forum: Use correct component for forum strings
This commit is contained in:
parent
b0c785e271
commit
10b1b82911
1 changed files with 3 additions and 3 deletions
|
@ -408,7 +408,7 @@ if (!empty($forum)) {
|
||||||
} else if ($replycount && !has_capability('mod/forum:deleteanypost', $modcontext)) {
|
} else if ($replycount && !has_capability('mod/forum:deleteanypost', $modcontext)) {
|
||||||
redirect(
|
redirect(
|
||||||
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
|
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
|
||||||
get_string('couldnotdeletereplies', 'rating'),
|
get_string('couldnotdeletereplies', 'forum'),
|
||||||
null,
|
null,
|
||||||
\core\output\notification::NOTIFY_ERROR
|
\core\output\notification::NOTIFY_ERROR
|
||||||
);
|
);
|
||||||
|
@ -418,7 +418,7 @@ if (!empty($forum)) {
|
||||||
if ($forum->type == 'single') {
|
if ($forum->type == 'single') {
|
||||||
redirect(
|
redirect(
|
||||||
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
|
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
|
||||||
get_string('cannotdeletediscussioninsinglediscussion', 'rating'),
|
get_string('cannotdeletediscussioninsinglediscussion', 'forum'),
|
||||||
null,
|
null,
|
||||||
\core\output\notification::NOTIFY_ERROR
|
\core\output\notification::NOTIFY_ERROR
|
||||||
);
|
);
|
||||||
|
@ -485,7 +485,7 @@ if (!empty($forum)) {
|
||||||
if (!has_capability('mod/forum:deleteanypost', $modcontext)) {
|
if (!has_capability('mod/forum:deleteanypost', $modcontext)) {
|
||||||
redirect(
|
redirect(
|
||||||
forum_go_back_to($urlfactory->get_view_post_url_from_post($postentity)),
|
forum_go_back_to($urlfactory->get_view_post_url_from_post($postentity)),
|
||||||
get_string('couldnotdeletereplies', 'rating'),
|
get_string('couldnotdeletereplies', 'forum'),
|
||||||
null,
|
null,
|
||||||
\core\output\notification::NOTIFY_ERROR
|
\core\output\notification::NOTIFY_ERROR
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue