--- loncom/interface/lonindexer.pm 2003/01/15 23:58:58 1.56 +++ loncom/interface/lonindexer.pm 2003/01/20 16:41:13 1.57 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.56 2003/01/15 23:58:58 www Exp $ +# $Id: lonindexer.pm,v 1.57 2003/01/20 16:41:13 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -838,12 +838,15 @@ sub display_line { } if ($hash{'display_attrs_8'} == 1) { my $output=''; - if (&Apache::loncommon::fileembstyle($curfext) eq 'ssi') { + my $embstyle=&Apache::loncommon::fileembstyle($curfext); + if ($embstyle eq 'ssi') { $output=&Apache::lonnet::ssi($filelink); $output=~s/^.*\]*\>//si; $output=~s/\<\/body\s*\>.*$//si; $output=''.$output.''; - } + } elsif ($embstyle eq 'img') { + $output=''; + } $r->print(' '.($output eq '' ? ' ':$output). " \n"); }