--- loncom/publisher/loncfile.pm 2004/01/05 16:48:50 1.50 +++ loncom/publisher/loncfile.pm 2004/02/17 22:06:10 1.51 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.50 2004/01/05 16:48:50 www Exp $ +# $Id: loncfile.pm,v 1.51 2004/02/17 22:06:10 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -599,12 +599,17 @@ causes the newdir operation to transitio sub NewDir1 { - my ($request, $username, $domain, $fn, $newfilename) = @_; + my ($request, $username, $domain, $fn, $newfilename, $mode) = @_; my $result=&exists($username,$domain,$newfilename); if ($result) { $request->print(''.$result.''); } else { + if ($mode eq 'testbank') { + $request->print(''); + } elsif ($mode eq 'imsimport') { + $request->print(''); + } $request->print('
'.&mt('Make new directory').' '. &display($newfilename).'?
'); @@ -749,7 +754,11 @@ sub phaseone { $r->print(''.&mt('No new filename specified.').'
'); } } elsif ($ENV{'form.action'} eq 'newdir') { - &NewDir1($r, $uname, $udom, $fn, $newfilename); + my $mode = ''; + if (exists($ENV{'form.callingmode'}) ) { + $mode = $ENV{'form.callingmode'}; + } + &NewDir1($r, $uname, $udom, $fn, $newfilename, $mode); } elsif ($ENV{'form.action'} eq 'newfile' || $ENV{'form.action'} eq 'newhtmlfile' || $ENV{'form.action'} eq 'newproblemfile' || @@ -1121,7 +1130,11 @@ sub phasetwo { } $dest = $newdir."/" } - $r->print('