Index: trunk/psModules/src/concepts/pmConceptsPhotcode.c
===================================================================
--- trunk/psModules/src/concepts/pmConceptsPhotcode.c	(revision 13410)
+++ trunk/psModules/src/concepts/pmConceptsPhotcode.c	(revision 19018)
@@ -17,7 +17,6 @@
 #include "pmConceptsPhotcode.h"
 
-psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, const pmFPAview *view)
+psString pmConceptsPhotcodeForView(pmFPAfile *file, const pmFPAview *view)
 {
-    PS_ASSERT_PTR_NON_NULL(config, NULL);
     PS_ASSERT_PTR_NON_NULL(file, NULL);
     PS_ASSERT_PTR_NON_NULL(view, NULL);
@@ -28,16 +27,9 @@
     }
 
-    // select recipe options supplied on command line
+    // select photcode rule from camera configuration
     bool mdok;                          // Status of MD lookup
-    psMetadata *recipe  = psMetadataLookupPtr(&mdok, config->recipes, "PPIMAGE");
-    if (!mdok || !recipe) {
-        psError(PS_ERR_IO, true, "Recipe PPIMAGE not found\n");
-        return NULL;
-    }
-
-    // select photcode rule from recipe
-    char *rule = psMetadataLookupStr(&mdok, recipe, "PHOTCODE.RULE");
+    char *rule = psMetadataLookupStr(&mdok, file->camera, "PHOTCODE.RULE");
     if (!mdok || !rule || strlen(rule) == 0) {
-        psError(PS_ERR_IO, true, "PHOTCODE.RULE not found in PPIMAGE recipe\n");
+        psError(PS_ERR_IO, true, "PHOTCODE.RULE not found in camera configuration.");
         return NULL;
     }
