[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /publisher loncfile.pm
raeburn
raeburn@source.lon-capa.org
Wed, 27 Jan 2010 15:05:21 -0000
raeburn Wed Jan 27 15:05:21 2010 EDT
Modified files: (Branch: version_2_9_X)
/loncom/publisher loncfile.pm
Log:
- Backport 1.103.
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.100.2.2 loncom/publisher/loncfile.pm:1.100.2.3
--- loncom/publisher/loncfile.pm:1.100.2.2 Fri Aug 28 14:32:26 2009
+++ loncom/publisher/loncfile.pm Wed Jan 27 15:05:21 2010
@@ -9,7 +9,7 @@
# and displays a page showing the results of the action.
#
#
-# $Id: loncfile.pm,v 1.100.2.2 2009/08/28 14:32:26 raeburn Exp $
+# $Id: loncfile.pm,v 1.100.2.3 2010/01/27 15:05:21 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -363,14 +363,14 @@
if (! -d "$newpath") {
$request->print('<p><span class="LC_warning">'
.&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."
- ,'<span class="LC_filename">'.&display($newpath).'</span>')
+ ,&display($newpath))
.'</span></p>');
$dest=~s|.*/||;
}
}
if ($dest =~ /\.(\d+)\.(\w+)$/){
$request->print('<p><span class="LC_warning">'
- .&mt('Bad filename [_1]','<span class="LC_filename">'.&display($dest).'</span>')
+ .&mt('Bad filename [_1]',&display($dest))
.'<br />'
.&mt('[_1](name).(number).(extension)[_2] not allowed.','<tt>','</tt>')
.'<br />'
@@ -552,8 +552,9 @@
$request->print('<input type="hidden" name="newfilename" value="'
.$newfilename.'" />'
.'<p>'
- .&mt($action.' [_1] to [_2]?'
- ,&display($fn),&display($newfilename))
+ .&mt($action.' [_1] to [_2]?',
+ &display($fn)
+ &display($newfilename))
.'</p>'
);
&CloseForm1($request, $fn);
@@ -563,8 +564,8 @@
}
} else {
$request->print('<p class="LC_error">'
- .&mt('No such file: [_1]'
- ,'<span class="LC_filename">'.&display($fn).'</span>')
+ .&mt('No such file: [_1]',
+ &display($fn))
.'</p></form>'
);
return;
@@ -625,15 +626,15 @@
}
}
$request->print('<p>'
- .&mt('Delete [_1]?'
- ,'<span class="LC_filename">'.&display($fn).'</span>')
+ .&mt('Delete [_1]?',
+ &display($fn))
.'</p>'
);
&CloseForm1($request, $fn);
} else {
$request->print('<p class="LC_error">'
- .&mt('No such file: [_1]'
- ,'<span class="LC_filename">'.&display($fn).'</span>')
+ .&mt('No such file: [_1]',
+ &display($fn))
.'</p></form>'
);
}
@@ -689,19 +690,21 @@
$request->print('<br /><a href="'.&url($fn).'">'.&mt('Cancel').'</a>');
return;
}
- $request->print('<input type="hidden" name="newfilename" value="'
- .$newfilename.'" />'
- .'<p>'
- .&mt('Copy [_1] to [_2]?'
- ,'<span class="LC_filename">'.&display($fn).'</span>'
- ,'<span class="LC_filename">'.&display($newfilename).'</span>')
- .'</p>'
+
+ $request->print(
+ '<input type="hidden" name="newfilename"'
+ .' value="'.$newfilename.'" />'
+ .'<p>'
+ .&mt('Copy [_1] to [_2]?',
+ &display($fn),
+ &display($newfilename))
+ .'</p>'
);
&CloseForm1($request, $fn);
} else {
$request->print('<p class="LC_error">'
- .&mt('No such file: [_1]'
- ,'<span class="LC_filename">'.&display($fn).'</span>')
+ .&mt('No such file: [_1]',
+ &display($fn))
.'</p></form>'
);
}
@@ -762,8 +765,8 @@
$request->print('<input type="hidden" name="newfilename" value="'
.$newfilename.'" />'
.'<p>'
- .&mt('Make new directory [_1]?'
- ,'<span class="LC_filename">'.&display($newfilename).'</span>')
+ .&mt('Make new directory [_1]?',
+ &display($newfilename))
.'</p>'
);
&CloseForm1($request, $fn);
@@ -776,15 +779,15 @@
if( -e $fn) {
$request->print('<input type="hidden" name="newfilename" value="'.$fn.'" />');
$request->print('<p>'
- .&mt('Decompress [_1]?'
- ,'<span class="LC_filename">'.&display($fn).'</span>')
+ .&mt('Decompress [_1]?',
+ &display($fn))
.'</p>'
);
&CloseForm1($request, $fn);
} else {
$request->print('<p class="LC_error">'
- .&mt('No such file: [_1]'
- ,'<span class="LC_filename">'.&display($fn).'</span>')
+ .&mt('No such file: [_1]',
+ &display($fn))
.'</p></form>'
);
}
@@ -1071,8 +1074,8 @@
}
} else {
$request->print('<p>'
- .&mt('No such file: [_1]'
- ,'<span class="LC_filename">'.&display($oldfile).'</span>')
+ .&mt('No such file: [_1]',
+ &display($oldfile))
.'</p></form>'
);
return 0;