--- loncom/interface/lonindexer.pm 2006/07/21 08:25:25 1.149 +++ loncom/interface/lonindexer.pm 2006/07/28 19:16:08 1.150 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.149 2006/07/21 08:25:25 albertel Exp $ +# $Id: lonindexer.pm,v 1.150 2006/07/28 19:16:08 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1163,6 +1163,9 @@ sub coursecontext { sub showpreview { my ($filelink)=@_; + if ($filelink=~/^(\/ext\/|http\:\/\/)/) { + return &mt('External Resource, preview not enabled'); + } my ($curfext)=($filelink=~/\.(\w+)$/); my $output=''; my $embstyle=&Apache::loncommon::fileembstyle($curfext);