|
@@ -248,14 +280,13 @@ ENDINPUTFIELD
sub maketoken {
my ($symb,$tuname,$tudom,$tcrsid)=@_;
unless ($symb) {
- $symb=&Apache::lonnet::symbread();
+ $symb=&Apache::lonnet::symbread();
}
unless ($tuname) {
- $tuname=$env{'user.name'};
+ $tuname=$env{'user.name'};
$tudom=$env{'user.domain'};
$tcrsid=$env{'request.course.id'};
}
-
return &Apache::lonnet::checkout($symb,$tuname,$tudom,$tcrsid);
}
@@ -263,12 +294,12 @@ sub printtokenheader {
my ($target,$token,$tsymb,$tcrsid,$tudom,$tuname)=@_;
unless ($token) { return ''; }
- my ($symb,$courseid,$domain,$name) = &Apache::lonxml::whichuser();
+ my ($symb,$courseid,$domain,$name) = &Apache::lonnet::whichuser();
unless ($tsymb) {
- $tsymb=$symb;
+ $tsymb=$symb;
}
unless ($tuname) {
- $tuname=$name;
+ $tuname=$name;
$tudom=$domain;
$tcrsid=$courseid;
}
@@ -277,13 +308,13 @@ sub printtokenheader {
if ($target eq 'web') {
my %idhash=&Apache::lonnet::idrget($tudom,($tuname));
- return
+ return
'