--- loncom/interface/loncommon.pm 2016/08/13 20:20:23 1.1075.2.108 +++ loncom/interface/loncommon.pm 2016/08/31 20:54:41 1.1075.2.110 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1075.2.108 2016/08/13 20:20:23 raeburn Exp $ +# $Id: loncommon.pm,v 1.1075.2.110 2016/08/31 20:54:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -14602,6 +14602,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'}.'/'; @@ -16056,7 +16059,7 @@ sub captcha_display { sub captcha_response { my ($context,$lonhost) = @_; my ($captcha_chk,$captcha_error); - my ($captcha,$pubkey,$privkey.$version) = &get_captcha_config($context,$lonhost); + my ($captcha,$pubkey,$privkey,$version) = &get_captcha_config($context,$lonhost); if ($captcha eq 'original') { ($captcha_chk,$captcha_error) = &check_captcha(); } elsif ($captcha eq 'recaptcha') {