Skip to content

Commit

Permalink
Small change to allow alias to work with video files
Browse files Browse the repository at this point in the history
  • Loading branch information
goehle committed Dec 23, 2015
1 parent e649f29 commit d0d43bc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/PGalias.pm
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ sub make_alias {
} else {
$self->warning_message( "The file name $aux_file_id did not have an extension.<BR> " .
"Every file name used as an argument to alias must have an extension.<BR> " .
"The permissable extensions are .jpg, .pdf, .gif, .png, and .html .<BR>");
"The permissable extensions are .jpg, .pdf, .gif, .png, .mpg, .mp4, .ogg, .webm and .html .<BR>");
$ext = undef;
return undef; #quit;
}
Expand Down Expand Up @@ -258,12 +258,17 @@ sub make_alias {
#warn "resource list contains ", %{ $self->{resource_list} };
###################################################################

if ($ext eq 'html') {
if ($ext eq 'html'
) {
$adr_output = $self->alias_for_html($aux_file_id)
} elsif ( $ext eq 'gif'
or $ext eq 'jpg'
or $ext eq 'png'
or $ext eq 'pdf'
or $ext eq 'pdf'
or $ext eq 'mp4'
or $ext eq 'mpg'
or $ext eq 'ogg'
or $ext eq 'webm'
) {
if ($displayMode =~ /^HTML/ ) {
################################################################################
Expand Down

0 comments on commit d0d43bc

Please sign in to comment.