Index: trunk/ippScripts/scripts/diffphot.pl
===================================================================
--- trunk/ippScripts/scripts/diffphot.pl	(revision 28362)
+++ trunk/ippScripts/scripts/diffphot.pl	(revision 28428)
@@ -70,6 +70,8 @@
 # Get input components
 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
-my ($inputPath, $camera);                     # Input path and camera
-my $bothways;                                 # Diff was done both ways?
+my $inputPath;                                  # Input path
+my $camera;                                     # Camera name
+my $bothways;                           # Diff was done both ways?
+my $magicked;                           # Magic status
 {
     my $command = "$diffphottool -input -diff_phot_id $diff_phot_id -skycell_id $skycell_id";
@@ -89,4 +91,5 @@
     $camera = $file->{camera};
     $bothways = $file->{bothways};
+    $magicked = $file->{magicked};
 }
 
@@ -252,4 +255,5 @@
     my $command = "$diffphottool -diff_phot_id $diff_phot_id -skycell_id $skycell_id";
     $command .= " -done -path_base $outroot";
+    $command .= " -magicked $magicked" if $magicked;
     $command .= " -quality $quality" if defined $quality;
     $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
