--- loncom/lond 2009/08/22 19:10:01 1.423 +++ loncom/lond 2009/08/22 19:52:08 1.424 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.423 2009/08/22 19:10:01 raeburn Exp $ +# $Id: lond,v 1.424 2009/08/22 19:52:08 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.423 $'; #' stupid emacs +my $VERSION='$Revision: 1.424 $'; #' stupid emacs my $remoteVERSION; my $currenthostid="default"; my $currentdomainid; @@ -4877,10 +4877,16 @@ sub enrollment_enabled_handler { # $tail - The tail of the command. In this case, # this is a colon separated set of words that will be split # into: -# $inst_course_id - The institutional cod3 from the -# institutions point of view. -# $cdom - The domain from the institutions -# point of view. +# $dom - The domain for which the check of +# institutional course code will occur. +# +# $instcode - The institutional code for the course +# being requested, or validated for rights +# to request. +# +# $owner - The course requestor (who will be the +# course owner, in the form username:domain +# # $client - Socket open on the client. # Returns: # 1 - Indicating processing should continue. @@ -5106,10 +5112,12 @@ sub crsreq_checks_handler { my $userinput = "$cmd:$tail"; my $dom = $tail; my $result; + my @reqtypes = ('official','unofficial','community'); eval { local($SIG{__DIE__})='DEFAULT'; my %validations; - my $response = &localenroll::crsreq_checks($dom,\%validations); + my $response = &localenroll::crsreq_checks($dom,\@reqtypes, + \%validations); if ($response eq 'ok') { foreach my $key (keys(%validations)) { $result .= &escape($key).'='.&Apache::lonnet::freeze_escape($validations{$key}).'&';