Index: trunk/psphot/src/psphotOutput.c
===================================================================
--- trunk/psphot/src/psphotOutput.c	(revision 26894)
+++ trunk/psphot/src/psphotOutput.c	(revision 28013)
@@ -126,5 +126,5 @@
 }
 
-bool psphotAddPhotcode (pmConfig *config, const pmFPAview *view) {
+bool psphotAddPhotcode (pmConfig *config, const pmFPAview *view, const char *filerule) {
 
     bool status = false;
@@ -135,5 +135,5 @@
     // loop over the available readouts
     for (int i = 0; i < num; i++) {
-	if (!psphotAddPhotcodeReadout (config, view, "PSPHOT.INPUT", i)) {
+	if (!psphotAddPhotcodeReadout (config, view, filerule, i)) {
             psError (PSPHOT_ERR_CONFIG, false, "failed to add photcode to PSPHOT.INPUT entry %d", i);
 	    return false;
