X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=9c426a30ce20f678d9daa95eb2c141305d491faa;hp=2ffec5fa82b5c7f24ddd90c2483981884d5624db;hb=c6745c143300a59acc48cec937b77ab071a5a693;hpb=764ad0eb8718d3611956402725d6a4615f688d8a diff --git a/phpfspot.class.php b/phpfspot.class.php index 2ffec5f..9c426a3 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -536,7 +536,7 @@ class PHPFSPOT { } // check_config_table - public function gen_thumb($idx = 0, $fromcmd = 0) + public function gen_thumb($idx = 0, $fromcmd = 0, $force = 0) { $details = $this->get_photo_details($idx); @@ -546,7 +546,7 @@ class PHPFSPOT { if($fromcmd) print "Image [". $idx ."] ". $details['name'] ." Thumbnails:"; /* if the file hasn't changed there is no need to regen the thumb */ - if($file_md5 == $this->getMD5($idx)) { + if(!$force && $file_md5 == $this->getMD5($idx)) { if($fromcmd) print " file has not changed - skipping\n"; return; }