move phpfspot cfg in a dist-config. ignore phpfspot_cfg.php from now
[phpfspot.git] / gen_thumbs.php
index d8e384a8de51f0125d88a324ecb5e2c0e131a985..4e621dce94ff6f9e81adfb33519f5d937630f462 100755 (executable)
@@ -4,11 +4,12 @@
 require_once "phpfspot.class.php";
 
 $fspot = new PHPFSPOT;
+$fspot->fromcmd = true;
 
 $all = $fspot->getPhotoSelection();
 
 foreach($all as $photo) {
-   $fspot->gen_thumb($photo, 'fromcmd');
+   $fspot->gen_thumb($photo);
 }
 
 ?>