From d91c326282639eb0af604ea3356fbf6d3d8a569d Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 5 Dec 2002 03:53:47 +0000 Subject: [PATCH] fixed for compatibility with collateral management system. --- sbin/imImport.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/imImport.pl b/sbin/imImport.pl index 5fd6c5b12..13b7d29a3 100644 --- a/sbin/imImport.pl +++ b/sbin/imImport.pl @@ -76,8 +76,10 @@ sub addFiles { $_[4]->{uploadsPath}."/images/".$id, $_[2]->{thumbnailSize}); print "Adding $filename to the database.\n"; - WebGUI::SQL->write("insert into images (imageId,name,filename,userId,username,dateUploaded) values - ($id,".$dbh->quote($filename).",".$dbh->quote($filename.".".$ext).",3,'Imported',".time().")",$_[0]); + WebGUI::SQL->write("insert into collateral (collateralId,name,filename,userId,username, + dateUploaded,collateralType,thumbnailsize) values + ($id,".$dbh->quote($filename).",".$dbh->quote($filename.".".$ext).",3,'Imported',".time()." + 'image',$_[2]->{thumbnailSize})",$_[0]); } } print "Finished adding.\n";