version 1.37, 2022/01/13 03:50:32
|
version 1.38, 2023/10/02 21:01:22
|
Line 198
|
Line 198
|
print $fh "$logmsg\n"; |
print $fh "$logmsg\n"; |
print $fh &mt('Messages end for [_1]',$crs)."\n"; |
print $fh &mt('Messages end for [_1]',$crs)."\n"; |
if ($changecount > 0) { |
if ($changecount > 0) { |
# Set $env{'user.name'}, $env{'user.domain'}, $env{'user.home'} |
# Set $env{'user.name'}, $env{'user.domain'}, $env{'user.home'}, |
# and $env{'request.course.id'} for use by logging in lonmsg |
# $env{'request.course.id'} for use by logging in lonmsg, |
|
# and $env{'course.'.$env{'request.course.id'}.'.internal.userdomains'} |
|
# for use in courserolelog |
$env{'request.course.id'} = $dom.'_'.$crs; |
$env{'request.course.id'} = $dom.'_'.$crs; |
|
if (exists($enrollvar{$crs}{'userdomains'})) { |
|
$env{'course.'.$dom.'_'.$crs.'.internal.userdomains'} = $enrollvar{$crs}{'userdomains'}; |
|
} |
my ($ownername,$ownerdom); |
my ($ownername,$ownerdom); |
if ($enrollvar{$crs}{'courseowner'} ne '') { |
if ($enrollvar{$crs}{'courseowner'} ne '') { |
if ($enrollvar{$crs}{'courseowner'} =~ /:/) { |
if ($enrollvar{$crs}{'courseowner'} =~ /:/) { |
Line 273
|
Line 278
|
} |
} |
delete($env{'user.name'}); |
delete($env{'user.name'}); |
delete($env{'user.home'}); |
delete($env{'user.home'}); |
|
if (exists($enrollvar{$crs}{'userdomains'})) { |
|
delete($env{'course.'.$dom.'_'.$crs.'.internal.userdomains'}); |
|
} |
delete($env{'request.course.id'}); |
delete($env{'request.course.id'}); |
$env{'user.domain'} = $dom; |
$env{'user.domain'} = $dom; |
} |
} |