Debug output tweak

This commit is contained in:
2019-06-12 23:26:54 -07:00
parent 53c520097c
commit 308d3c513a
3 changed files with 37 additions and 32 deletions

View File

@@ -45,7 +45,7 @@ switch ($mode) {
$stmt->BindValue(":tool",$row['tool']);
} else {
$dfile = $bpath."/icons/".substr($hash, 0, 2)."/".$hash.".png";
if (!is_dir(dirname($dfile))) { mkdir(dirname($dfile)); }
if (!is_dir(dirname($dfile))) { @mkdir(dirname($dfile)); }
shell_exec("sips -z ".$p['thumb_size']." ".$p['thumb_size']." ".$tfile." --out ".$dfile);
$stmt->BindValue(":created",time());
$stmt->BindValue(":relative_path",substr($dfile,strlen($bpath)));