From 153cc356cb02602692a4f0063ade4878b9712b2b Mon Sep 17 00:00:00 2001
From: moodler
Date: Fri, 25 Oct 2002 15:27:12 +0000
Subject: [PATCH] Added TARGET=_blank to links in HTML email ... apparently
these links were causing problems in Hotmail. Normally I'd say "Good!", but
... :-)
---
mod/forum/lib.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index 1d311ca6dd..099f9fb470 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -227,13 +227,13 @@ function forum_cron () {
if ($userto->mailformat == 1) { // HTML
$posthtml = "".
- "wwwroot/course/view.php?id=$course->id\">$course->shortname -> ".
- "wwwroot/mod/forum/index.php?id=$course->id\">$strforums -> ".
- "wwwroot/mod/forum/view.php?f=$forum->id\">$forum->name";
+ "wwwroot/course/view.php?id=$course->id\">$course->shortname -> ".
+ "wwwroot/mod/forum/index.php?id=$course->id\">$strforums -> ".
+ "wwwroot/mod/forum/view.php?f=$forum->id\">$forum->name";
if ($discussion->name == $forum->name) {
$posthtml .= "
";
} else {
- $posthtml .= " -> wwwroot/mod/forum/discuss.php?d=$discussion->id\">$discussion->name
";
+ $posthtml .= " -> wwwroot/mod/forum/discuss.php?d=$discussion->id\">$discussion->name";
}
$posthtml .= forum_make_mail_post($post, $userfrom, $userto, $course, false, $canreply, false, false);
@@ -526,12 +526,12 @@ function forum_make_mail_post(&$post, $user, $touser, $course,
if ($ownpost) {
$output .= "wwwroot/mod/forum/post.php?delete=$post->id\">".get_string("delete", "forum")."";
if ($reply) {
- $output .= " | wwwroot/mod/forum/post.php?reply=$post->id\">".get_string("reply", "forum")."";
+ $output .= " | wwwroot/mod/forum/post.php?reply=$post->id\">".get_string("reply", "forum")."";
}
$output .= " ";
} else {
if ($reply) {
- $output .= "wwwroot/mod/forum/post.php?reply=$post->id\">".get_string("reply", "forum")." ";
+ $output .= "wwwroot/mod/forum/post.php?reply=$post->id\">".get_string("reply", "forum")." ";
}
}
--
2.39.5