--- loncom/publisher/loncfile.pm 2012/10/29 17:38:55 1.116
+++ loncom/publisher/loncfile.pm 2013/04/11 14:59:58 1.118
@@ -9,7 +9,7 @@
# and displays a page showing the results of the action.
#
#
-# $Id: loncfile.pm,v 1.116 2012/10/29 17:38:55 raeburn Exp $
+# $Id: loncfile.pm,v 1.118 2013/04/11 14:59:58 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -101,7 +101,7 @@ my $r; # Needs to be global for some
=cut
sub Debug {
- # Put out the indicated message butonly if DEBUG is true.
+ # Put out the indicated message but only if DEBUG is true.
if ($DEBUG) {
my ($r,$message) = @_;
$r->log_reason($message);
@@ -109,14 +109,15 @@ sub Debug {
}
sub done {
- my ($url)=@_;
- my $done=&mt("Done");
- return(<$done
-
-ENDDONE
+ my ($url) = @_;
+ return
+ '
';
}
=pod
@@ -234,7 +235,7 @@ sub empty_directory {
=item exists($user, $domain, $file)
- Determine if a resource file name has been published or exists
+ Determine if a resource filename has been published or exists
in the construction space.
Parameters:
@@ -367,7 +368,7 @@ sub cleanDest {
($newpath,$error)=&relativeDest($fn,$newpath,$uname,$udom);
if (! -d "$newpath") {
$request->print('
'
- .&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."
+ .&mt("You have requested to create file in directory [_1] which doesn't exist. The requested directory path has been removed from the requested filename."
,&display($newpath))
.'
');
$dest=~s|.*/||;
@@ -436,9 +437,9 @@ Parameters:
sub CloseForm1 {
my ($request, $fn) = @_;
- $request->print('');
- $request->print('');
+ $request->print('');
+ $request->print(' ');
}
@@ -824,7 +825,7 @@ Parameters:
=item $domain - Name of the domain of the user
-=item $fn - Source file name
+=item $fn - Source filename
=item $newfilename
- Name of the file to be created; no path information
@@ -837,7 +838,7 @@ Side Effects:
=item 2 new forms are displayed. Clicking on the confirmation button
causes the browser to attempt to load the specfied URL, allowing the
proper handler to take care of file creation. There is also a Cancel
-button which returns you to the driectory listing you came from
+button which returns you to the directory listing you came from
=back
@@ -879,7 +880,7 @@ sub NewFile1 {
'