Debug output tweak
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user