--- loncom/publisher/loncfile.pm 2007/07/25 19:56:57 1.86
+++ loncom/publisher/loncfile.pm 2009/01/29 11:50:32 1.93
@@ -9,7 +9,7 @@
# and displays a page showing the results of the action.
#
#
-# $Id: loncfile.pm,v 1.86 2007/07/25 19:56:57 albertel Exp $
+# $Id: loncfile.pm,v 1.93 2009/01/29 11:50:32 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -109,6 +109,17 @@ sub Debug {
}
}
+sub done {
+ my ($url)=@_;
+ my $done=&mt("Done");
+ return(< ".&mt('You have requested to create file in directory [_1] which doesn\'t exist. The requested directory path has been removed from the requested file name.','"'.$newpath.'"')." '
+ .&mt("You have requested to create file in directory [_1] which doesn't exist. The requested directory path has been removed from the requested file name."
+ ,'"'.&display($newpath).'"')
+ .' '.$action.' '.&display($fn).
- '
(name).(number).(extension) not allowed.
Removing the .number. from requested filename.',$dest)
+ .&mt('Bad filename [_1]',''.&display($dest).'')
+ .'
'
+ .&mt('[_1](name).(number).(extension)[_2] not allowed.','','')
+ .'
'
+ .&mt('Removing the [_1].number.[_2] from requested filename.','','')
.'');
$dest =~ s/\.(\d+)(\.\w+)$/$2/;
}
@@ -434,7 +453,7 @@ Parameters:
sub CloseForm2 {
my ($request, $user, $fn) = @_;
- $request->print(''.&mt('Done').'
');
+ $request->print(&done(&url($fn)));
}
=pod
@@ -527,7 +546,7 @@ sub Rename1 {
$request->print('
to '.&display($newfilename).'?
'.&mt('No new filename specified.').'
'); @@ -1127,8 +1146,8 @@ sub NewDir2 { sub decompress2 { my ($r, $user, $dir, $file) = @_; - &Apache::lonnet::appenv('cgi.file' => $file); - &Apache::lonnet::appenv('cgi.dir' => $dir); + &Apache::lonnet::appenv({'cgi.file' => $file}); + &Apache::lonnet::appenv({'cgi.dir' => $dir}); my $result=&Apache::lonnet::ssi_body('/cgi-bin/decompress.pl'); $r->print($result); &Apache::lonnet::delenv('cgi.file'); @@ -1255,7 +1274,7 @@ sub phasetwo { $r->print('