![]() ![]() | ![]() |
version 1.213.4.3, 2012/08/27 16:03:24 | version 1.218, 2013/06/02 01:41:09 |
---|---|
Line 1356 sub coursecontext { | Line 1356 sub coursecontext { |
sub showpreview { | sub showpreview { |
my ($filelink)=@_; | my ($filelink)=@_; |
if ($filelink=~m-^(/ext/|http://)-) { | if ($filelink=~m-^(/ext/|https?://)-) { |
return &mt('External Resource, preview not enabled'); | return &mt('External Resource, preview not enabled'); |
} | } |
my ($curfext)=($filelink=~/\.(\w+)$/); | my ($curfext)=($filelink=~/\.(\w+)$/); |