? .exif.module.swp
? .git
? .gitignore
Index: exif.class.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/exif/Attic/exif.class.php,v
retrieving revision 1.1.2.16
diff -u -p -r1.1.2.16 exif.class.php
--- exif.class.php	23 Jul 2010 17:56:12 -0000	1.1.2.16
+++ exif.class.php	7 Oct 2010 21:59:33 -0000
@@ -190,6 +190,7 @@ Class Exif {
    */
   function openXMP($file) {
     // Setup.
+    SXMPFiles::Initialize();
     $xmpfiles = new SXMPFiles();
     $xmpmeta  = new SXMPMeta();
 
@@ -241,10 +242,10 @@ Class Exif {
     // Try to read XMP data if the namespace is available.
     if(@$xmpmeta->GetNamespacePrefix($config['ns'])) {
       if ($config['type'] == 'property') {
-        $value = @$xmpmeta->GetProperty($config['name'], $config['ns']);
+        $value = @$xmpmeta->GetProperty($config['ns'], $config['name']);
       }
       elseif ($config['type'] == 'array') {
-        $value = @$xmpmeta->GetArrayItem($config['name'], $key, $config['ns']);
+        $value = @$xmpmeta->GetArrayItem($key, $config['ns'], $config['name']);
       } 
       elseif ($config['type'] == 'struct') {
         $value = @$xmpmeta->GetStructField($config['ns'], $config['struct'], $config['ns'], $config['name']);
