Commit 0a2eb9e5 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix exception without stack frame error (#2993)

parent 6c16d644
......@@ -54,9 +54,6 @@ $post = get_record_sql(
array(0, $postid)
);
define('GROUP', $post->group);
if (!$post) {
throw new NotFoundException(get_string('cantfindpost', 'interaction.forum', $postid));
}
......@@ -72,6 +69,8 @@ if (!$post->parent) {
throw new AccessDeniedException(get_string('cantdeletethispost', 'interaction.forum'));
}
define('GROUP', $post->group);
define('TITLE', $post->topicsubject . ' - ' . get_string('deletepost', 'interaction.forum'));
$post->ctime = relative_date(get_string('strftimerecentfullrelative', 'interaction.forum'), get_string('strftimerecentfull'), $post->ctime);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment