--- loncom/interface/loncommon.pm 2016/07/18 19:28:58 1.1250 +++ loncom/interface/loncommon.pm 2016/08/31 19:08:19 1.1252 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1250 2016/07/18 19:28:58 raeburn Exp $ +# $Id: loncommon.pm,v 1.1252 2016/08/31 19:08:19 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5306,7 +5306,7 @@ sub check_ip_acc { return 1; } my $allowed; - my $ip=$env{'request.host'} || $ENV{'REMOTE_ADDR'} || $clientip; + my $ip=$ENV{'REMOTE_ADDR'} || $clientip || $env{'request.host'}; my $name; my %access = ( @@ -15501,6 +15501,9 @@ sub construct_course { if ($args->{'setcontent'}) { $cenv{'question.email'}=$args->{'ccuname'}.':'.$args->{'ccdomain'}; } + if ($args->{'setcomment'}) { + $cenv{'comment.email'}=$args->{'ccuname'}.':'.$args->{'ccdomain'}; + } } if ($args->{'reshome'}) { $cenv{'reshome'}=$args->{'reshome'}.'/';