need to know the photo details before checkin files md5 sum
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 07:13:53 +0000 (07:13 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 9 Jun 2007 07:13:53 +0000 (07:13 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@69 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index e0fba5f8cb5bc7a06b00c5f83b4f6c3f8b57472e..3f7a7280253b04cdd44110ee3188ee7560610882 100644 (file)
@@ -371,10 +371,11 @@ class PHPFSPOT {
       
       foreach($all as $photo) {
 
       
       foreach($all as $photo) {
 
+         $details = $this->get_photo_details($photo);
+
          $full_path = $this->translate_path($details['directory_path'])  ."/". $details['name'];
          $file_md5 = md5_file($full_path);
 
          $full_path = $this->translate_path($details['directory_path'])  ."/". $details['name'];
          $file_md5 = md5_file($full_path);
 
-         $details = $this->get_photo_details($photo);
          if($fromcmd) print "Image ". $details['name'] ." Thumbnails:";
 
          /* if the file hasn't changed there is no need to regen the thumb */
          if($fromcmd) print "Image ". $details['name'] ." Thumbnails:";
 
          /* if the file hasn't changed there is no need to regen the thumb */