mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +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)) {
|
||||
redirect(
|
||||
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
|
||||
get_string('couldnotdeletereplies', 'rating'),
|
||||
get_string('couldnotdeletereplies', 'forum'),
|
||||
null,
|
||||
\core\output\notification::NOTIFY_ERROR
|
||||
);
|
||||
|
@ -418,7 +418,7 @@ if (!empty($forum)) {
|
|||
if ($forum->type == 'single') {
|
||||
redirect(
|
||||
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
|
||||
get_string('cannotdeletediscussioninsinglediscussion', 'rating'),
|
||||
get_string('cannotdeletediscussioninsinglediscussion', 'forum'),
|
||||
null,
|
||||
\core\output\notification::NOTIFY_ERROR
|
||||
);
|
||||
|
@ -485,7 +485,7 @@ if (!empty($forum)) {
|
|||
if (!has_capability('mod/forum:deleteanypost', $modcontext)) {
|
||||
redirect(
|
||||
forum_go_back_to($urlfactory->get_view_post_url_from_post($postentity)),
|
||||
get_string('couldnotdeletereplies', 'rating'),
|
||||
get_string('couldnotdeletereplies', 'forum'),
|
||||
null,
|
||||
\core\output\notification::NOTIFY_ERROR
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue