Index: trunk/ippScripts/scripts/detrend_process_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 11837)
+++ trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 12079)
@@ -134,6 +134,5 @@
 # Take off the absolute path, to stuff into the database
 $outputImage = $ipprc->convert_filename_relative( $outputImage );
-$outputBin1  = $ipprc->convert_filename_relative( $outputBin1  );
-$outputBin2  = $ipprc->convert_filename_relative( $outputBin2  );
+$outputRoot = $ipprc->convert_filename_relative( $outputRoot );
 
 my $bg = ($stats->bg_mean() or 'NAN');
@@ -144,5 +143,5 @@
 unless ($no_update) {
     my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag " .
-	"-class_id $class_id -recip $recipe -uri $outputImage -b1_uri $outputRoot";  # Command to run dettool
+	"-class_id $class_id -recip $recipe -uri $outputImage -path_base $outputRoot"; # Command to run dettool
     $command .= " -bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev";
     $command .= " -dbname $dbname" if defined $dbname;
