Skip to content

Commit

Permalink
MDL-66461 forum: Use correct component for forum strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Aug 21, 2019
1 parent da048e6 commit cf24975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/forum/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
} 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
);
Expand All @@ -418,7 +418,7 @@
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
);
Expand Down Expand Up @@ -485,7 +485,7 @@
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
);
Expand Down

0 comments on commit cf24975

Please sign in to comment.