--- loncom/interface/londocs.pm 2005/08/01 17:24:18 1.200 +++ loncom/interface/londocs.pm 2005/09/20 07:52:03 1.206 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.200 2005/08/01 17:24:18 raeburn Exp $ +# $Id: londocs.pm,v 1.206 2005/09/20 07:52:03 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -166,7 +166,10 @@ sub dumpcourse { $crs=~s/\_/\//g; foreach (keys %replacehash) { my $newfilename=$title.'/'.$replacehash{$_}; + $newfilename=~s/\.(\w+)$//; + my $ext=$1; $newfilename=&clean($newfilename); + $newfilename.='.'.$ext; my @dirs=split(/\//,$newfilename); my $path='/home/'.$ca.'/public_html'; my $makepath=$path; @@ -252,7 +255,7 @@ sub exportbutton { return '