--- loncom/lonnet/perl/lonnet.pm 2012/08/23 14:17:48 1.1187 +++ loncom/lonnet/perl/lonnet.pm 2012/08/27 14:33:24 1.1188 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.1187 2012/08/23 14:17:48 raeburn Exp $ +# $Id: lonnet.pm,v 1.1188 2012/08/27 14:33:24 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -117,7 +117,7 @@ our @EXPORT = qw(%env); { my $logid; sub write_log { - my ($context,$hash_name,$storehash,$delflag,$udom,$uname,$cdom,$cnum)=@_; + my ($context,$hash_name,$storehash,$delflag,$uname,$udom,$cnum,$cdom)=@_; if ($context eq 'course') { if (($cnum eq '') || ($cdom eq '')) { $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; @@ -3555,8 +3555,8 @@ sub courserolelog { } else { $storehash{'section'} = $sec; } - &write_log('course',$namespace,\%storehash,$delflag,$domain, - $username,$cdom,$cnum); + &write_log('course',$namespace,\%storehash,$delflag,$username, + $domain,$cnum,$cdom); if (($trole ne 'st') || ($sec ne '')) { &devalidate_cache_new('getcourseroles',$cdom.'_'.$cnum); } @@ -3576,8 +3576,8 @@ sub domainrolelog { end => $tend, context => $context, ); - &write_log('domain',$namespace,\%storehash,$delflag,$domain, - $username,$cdom,$domconfiguser); + &write_log('domain',$namespace,\%storehash,$delflag,$username, + $domain,$domconfiguser,$cdom); } return; @@ -3595,8 +3595,8 @@ sub coauthorrolelog { end => $tend, context => $context, ); - &write_log('author',$namespace,\%storehash,$delflag,$domain, - $username,$audom,$auname); + &write_log('author',$namespace,\%storehash,$delflag,$username, + $domain,$auname,$audom); } return; }