--- loncom/publisher/lonretrieve.pm 2001/04/04 03:59:15 1.5 +++ loncom/publisher/lonretrieve.pm 2001/05/02 20:34:34 1.7 @@ -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('
'. ''. ''. @@ -69,6 +70,9 @@ sub phaseone { 'Retrieval of an old version will '. 'overwrite the file currently in construction space

'. '

'); +} else { + $r->print('

No previous versions published.

'); +} } sub phasetwo { @@ -158,3 +162,6 @@ sub handler { $r->print(''); return OK; } + +1; +__END__