--- loncom/publisher/loncfile.pm 2006/12/20 22:41:08 1.80 +++ loncom/publisher/loncfile.pm 2007/04/20 20:55:01 1.82 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.80 2006/12/20 22:41:08 albertel Exp $ +# $Id: loncfile.pm,v 1.82 2007/04/20 20:55:01 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -300,9 +300,9 @@ sub checksuffix { my $newsuffix; if ($new=~m:(.*/*)([^/]+)\.(\w+)$:) { $newsuffix=$3; } if ($old=~m:(.*)/+([^/]+)\.(\w+)$:) { $oldsuffix=$3; } - if ($oldsuffix ne $newsuffix) { + if (lc($oldsuffix) ne lc($newsuffix)) { $result.= - '
'.&mt('Warning: change of MIME type!').'
'; + ''.&mt('Warning: change of MIME type!').'
'; } return $result; } @@ -463,9 +463,9 @@ sub Rename1 { if (-d $fn) { $newfilename=~/\.(\w+)$/; if (&Apache::loncommon::fileembstyle($1) eq 'ssi') { - $request->print(''.&mt('Make new file').' '.&display($newfilename).'?
'); $request->print('');