summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-19 18:56:05 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-19 18:56:05 +0000
commit836e04ea5fc6b0d32d4d57f1af66d1a9aaf423a1 (patch)
tree2cc39558e09311f2e67b697a37ebc112ba80f877 /phpfspot.class.php
parent218b86247bd6fe415e616da268abff7faaa3e96a (diff)
some thumbnail error handling
force thumbnail generation if the file is inserted into the phpfspot database, but the thumbnails are not existing (anymore?) git-svn-id: file:///var/lib/svn/phpfspot/trunk@113 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php4
1 files changed, 2 insertions, 2 deletions
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;
}