Skip to content

Commit

Permalink
mnet/forum MDL-18118 - email links were rewritten to use IDP when SIT…
Browse files Browse the repository at this point in the history
…EID not 1

Switched check to use is_mnet_remote_user()
  • Loading branch information
poltawski committed Feb 2, 2009
1 parent 2b900b0 commit 244d150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -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])) {
Expand Down

0 comments on commit 244d150

Please sign in to comment.