From e3288953e7aa3105293bd09bb0a86151235ee374 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 30 Dec 2013 18:26:24 +0800 Subject: [PATCH] MDL-35973 lib: added a page title to redirect() and added 2 seconds to the page redirection when posting in a forum --- lib/weblib.php | 1 + mod/forum/post.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 955526e6b69..680d091de78 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2550,6 +2550,7 @@ function redirect($url, $message='', $delay=-1) { if ($PAGE) { $PAGE->set_context(null); $PAGE->set_pagelayout('redirect'); // No header and footer needed. + $PAGE->set_title(get_string('pageshouldredirect', 'moodle')); } if ($url instanceof moodle_url) { diff --git a/mod/forum/post.php b/mod/forum/post.php index e3d3decf29f..f1e9988d0a1 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -790,7 +790,7 @@ if ($fromform = $mform_post->get_data()) { } if ($subscribemessage = forum_post_subscription($discussion, $forum)) { - $timemessage = 4; + $timemessage = 6; } // Update completion status