--- loncom/interface/lonindexer.pm 2006/07/21 08:25:25 1.149 +++ loncom/interface/lonindexer.pm 2006/07/31 19:45:57 1.151 @@ -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.151 2006/07/31 19:45:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1163,6 +1163,9 @@ sub coursecontext { sub showpreview { my ($filelink)=@_; + if ($filelink=~m-^(/ext/|http://)-) { + return &mt('External Resource, preview not enabled'); + } my ($curfext)=($filelink=~/\.(\w+)$/); my $output=''; my $embstyle=&Apache::loncommon::fileembstyle($curfext);