--- loncom/interface/lonmanagekeys.pm 2004/05/08 02:07:16 1.14 +++ loncom/interface/lonmanagekeys.pm 2005/02/17 08:29:42 1.16 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to manage course access keys # -# $Id: lonmanagekeys.pm,v 1.14 2004/05/08 02:07:16 www Exp $ +# $Id: lonmanagekeys.pm,v 1.16 2005/02/17 08:29:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -41,9 +41,10 @@ use Apache::lonlocal; ############################################################### ############################################################### sub header { + my $html=&Apache::lonxml::xmlbegin(); my $bodytag=&Apache::loncommon::bodytag('Access Key Management'); return(< +$html LON-CAPA Access Key Management @@ -194,7 +195,7 @@ sub handler { my %cenv=&Apache::lonnet::coursedescription($ENV{'form.cid'}); my $keytype=''; if ($cenv{'url'} eq '/res/') { - ($cenv{'num'},$cenv{'domain'})=split(/\_/,$ENV{'form.cid'}); + ($cenv{'domain'},$cenv{'num'})=split(/\_/,$ENV{'form.cid'}); $keytype='auth'; } elsif ($cenv{'keyauth'}) { ($cenv{'num'},$cenv{'domain'})=split(/\W/,$cenv{'keyauth'});