--- loncom/publisher/loncfile.pm 2014/06/14 21:40:05 1.122 +++ loncom/publisher/loncfile.pm 2015/01/19 15:36:11 1.123 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.122 2014/06/14 21:40:05 raeburn Exp $ +# $Id: loncfile.pm,v 1.123 2015/01/19 15:36:11 goltermann Exp $ # # Copyright Michigan State University Board of Trustees # @@ -895,16 +895,21 @@ sub NewFile1 { '
'. ''); - return; + } elsif ($type ne 'warning') { + my $query = ""; + $query .= "?mode=" . $env{'form.mode'} unless (!exists($env{'form.mode'}) || !length($env{'form.mode'})); + $request->print(' + '); + } else { + $request->print(''.&mt('Make new file').' '.&display($newfilename).'?
'); + $request->print(''); + $request->print(''); + $request->print(''); } - - $request->print(''.&mt('Make new file').' '.&display($newfilename).'?
'); - $request->print(''); - - $request->print(''); - $request->print(''); } return; } @@ -1421,7 +1426,7 @@ sub handler { $r=shift; - &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['decompress','action','filename','newfilename']); + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['decompress','action','filename','newfilename','mode']); &Debug($r, "loncfile.pm - handler entered"); &Debug($r, " filename: ".$env{'form.filename'});