From: poltawski Date: Mon, 2 Feb 2009 17:47:12 +0000 (+0000) Subject: mnet/forum MDL-18118 - email links were rewritten to use IDP when SITEID not 1 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=244d15093fe1ac3c185750508f765105681fadff;p=moodle.git mnet/forum MDL-18118 - email links were rewritten to use IDP when SITEID not 1 Switched check to use is_mnet_remote_user() --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 86fcb05652..656fa5a29c 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4097,7 +4097,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a // If the user is a remote mnet user, parse the email text for URL to the // wwwroot and modify the url to direct the user's browser to login at their // home site (identity provider - idp) before hitting the link itself - if ($user->mnethostid > 1) { + if (is_mnet_remote_user($user)) { require_once($CFG->dirroot.'/mnet/lib.php'); // Form the request url to hit the idp's jump.php if (isset($mnetjumps[$user->mnethostid])) {