--- loncom/interface/loncreatecourse.pm 2006/06/29 17:47:19 1.93.2.2 +++ loncom/interface/loncreatecourse.pm 2006/07/19 10:08:26 1.93.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.93.2.2 2006/06/29 17:47:19 albertel Exp $ +# $Id: loncreatecourse.pm,v 1.93.2.3 2006/07/19 10:08:26 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -833,7 +833,7 @@ sub create_course { clonecourse => $env{'form.clonecourse'}, clonedomain => $env{'form.clonedomain'}, crsid => $env{'form.crsid'}, - curruser => $env{'user.name'}, + curruser => $env{'user.name'}.':'.$env{'user.domain'}, crssections => $env{'form.crssections'}, crsxlist => $env{'form.crsxlist'}, autoadds => $env{'form.autoadds'}, @@ -918,13 +918,14 @@ sub construct_course { my $crstype = lc($args->{'crstype'}); my %cenv=(); $$courseid=&Apache::lonnet::createcourse($args->{'course_domain'}, - $args->{'cdescr'}, - $args->{'curl'}, - $args->{'course_home'}, - $args->{'nonstandard'}, - $args->{'crscode'}, - $args->{'ccuname'}, - $args->{'crstype'}); + $args->{'cdescr'}, + $args->{'curl'}, + $args->{'course_home'}, + $args->{'nonstandard'}, + $args->{'crscode'}, + $args->{'ccuname'}.':'. + $args->{'ccdomain'}, + $args->{'crstype'}); # Note: The testing routines depend on this being output; see # Utils::Course. This needs to at least be output as a comment @@ -988,7 +989,8 @@ sub construct_course { $cenv{'internal.coursequota'}=$args->{'crsquota'} = 20; } if ($args->{'ccuname'}) { - $cenv{'internal.courseowner'} = $args->{'ccuname'}; + $cenv{'internal.courseowner'} = $args->{'ccuname'}. + ':'.$args->{'ccdomain'}; } else { $cenv{'internal.courseowner'} = $args->{'curruser'}; } @@ -1047,7 +1049,7 @@ sub construct_course { my @notified = (); if ($args->{'notify_owner'}) { if ($args->{'ccuname'} ne '') { - push(@notified,$args->{'ccuname'}.'@'.$args->{'ccdomain'}); + push(@notified,$args->{'ccuname'}.':'.$args->{'ccdomain'}); } } if ($args->{'notify_dc'}) {