--- loncom/publisher/lonretrieve.pm 2001/04/04 03:59:15 1.5 +++ loncom/publisher/lonretrieve.pm 2001/04/10 19:45:37 1.6 @@ -31,10 +31,11 @@ sub phaseone { my $resdir=$resfn; $resdir=~s/\/[^\/]+$/\//; - $fn=~/^\/(.+)\.(\w+)$/; + $fn=~/\/([^\/]+)\.(\w+)$/; my $main=$1; my $suffix=$2; - + + if (-e $resfn) { $r->print('
'); +} else { + $r->print('