Skip to content

Commit

Permalink
MDL-66461 forum: Use correct notification class
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Aug 21, 2019
1 parent 7e16c70 commit b0c785e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mod/forum/post.php
Expand Up @@ -156,7 +156,7 @@
$urlfactory->get_course_url_from_forum($forumentity),
get_string('activityiscurrentlyhidden'),
null,
\core\output\notice::NOTIFY_ERROR
\core\output\notification::NOTIFY_ERROR
);
}

Expand Down Expand Up @@ -387,7 +387,7 @@
$urlfactory->get_discussion_view_url_from_discussion($discussionentity),
get_string('cannotdeletepost', 'forum'),
null,
\core\output\notice::NOTIFY_ERROR
\core\output\notification::NOTIFY_ERROR
);
}

Expand All @@ -403,14 +403,14 @@
$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()) {
Expand All @@ -420,7 +420,7 @@
$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);
Expand Down Expand Up @@ -452,7 +452,7 @@
$urlfactory->get_discussion_view_url_from_post($postentity),
get_string('errorwhiledelete', 'forum'),
null,
\core\output\notice::NOTIFY_ERROR
\core\output\notification::NOTIFY_ERROR
);
}

Expand Down Expand Up @@ -487,7 +487,7 @@
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
);
}

Expand Down

0 comments on commit b0c785e

Please sign in to comment.