fix: Matrix and fixed a bug in fileUpload.pl

This commit is contained in:
Martin Kamerbeek 2006-09-06 13:37:23 +00:00
parent 6ceb0ff0be
commit 9de3c465a7
3 changed files with 109 additions and 1 deletions

View file

@ -211,7 +211,7 @@ sub addFiles {
# TB : add the path relative to $pathToFile in the message.
print "\tAdding ".$file->{relpath}.$slash.$file->{filename}." to the database.\n" unless ($quiet);
my $templateId = 'PBtmpl0000000000000024';
if (isIn($file->{ext},@nailable)) {
if (isIn(lc($file->{ext}),@nailable)) {
$class = 'WebGUI::Asset::File::Image';
$templateId = 'PBtmpl0000000000000088'
}