Return to lonindexer.pm CVS log | Up to [LON-CAPA] / loncom / interface |
version 1.150, 2006/07/28 19:16:08 | version 1.151, 2006/07/31 19:45:57 |
---|---|
Line 1163 sub coursecontext { | Line 1163 sub coursecontext { |
sub showpreview { | sub showpreview { |
my ($filelink)=@_; | my ($filelink)=@_; |
if ($filelink=~/^(\/ext\/|http\:\/\/)/) { | if ($filelink=~m-^(/ext/|http://)-) { |
return &mt('External Resource, preview not enabled'); | return &mt('External Resource, preview not enabled'); |
} | } |
my ($curfext)=($filelink=~/\.(\w+)$/); | my ($curfext)=($filelink=~/\.(\w+)$/); |