From da048e60dbba604cd4e0dcc4ba9f5c0f8d5b7d27 Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Wed, 21 Aug 2019 12:50:30 +0100 Subject: [PATCH] MDL-66461 forum: Use correct notification class --- mod/forum/post.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index 49af7e2ee96..77ca1a2ec74 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -156,7 +156,7 @@ if (!empty($forum)) { $urlfactory->get_course_url_from_forum($forumentity), get_string('activityiscurrentlyhidden'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); } @@ -387,7 +387,7 @@ if (!empty($forum)) { $urlfactory->get_discussion_view_url_from_discussion($discussionentity), get_string('cannotdeletepost', 'forum'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); } @@ -403,14 +403,14 @@ if (!empty($forum)) { $urlfactory->get_discussion_view_url_from_discussion($discussionentity), get_string('couldnotdeleteratings', 'rating'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); } else if ($replycount && !has_capability('mod/forum:deleteanypost', $modcontext)) { redirect( $urlfactory->get_discussion_view_url_from_discussion($discussionentity), get_string('couldnotdeletereplies', 'rating'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); } else { if (!$postentity->has_parent()) { @@ -420,7 +420,7 @@ if (!empty($forum)) { $urlfactory->get_discussion_view_url_from_discussion($discussionentity), get_string('cannotdeletediscussioninsinglediscussion', 'rating'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); } forum_delete_discussion($discussion, false, $course, $cm, $forum); @@ -452,7 +452,7 @@ if (!empty($forum)) { $urlfactory->get_discussion_view_url_from_post($postentity), get_string('errorwhiledelete', 'forum'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); } @@ -487,7 +487,7 @@ if (!empty($forum)) { forum_go_back_to($urlfactory->get_view_post_url_from_post($postentity)), get_string('couldnotdeletereplies', 'rating'), null, - \core\output\notice::NOTIFY_ERROR + \core\output\notification::NOTIFY_ERROR ); }