fix storageconv issue with postgres

(cherry picked from commit 0e2239e50b)
This commit is contained in:
Mario 2019-06-10 19:49:34 +00:00
parent 6a40f3ed60
commit 8692977585

View File

@ -55,11 +55,14 @@ if($argc == 2) {
$storage
);
$img_path = dbunescbin($xx['content']);
foreach($n as $nn) {
echo '.';
$filename = dbunescbin($xx['content']) . '-' . $nn['imgscale'];
$filename = $img_path . '-' . $nn['imgscale'];
if(! file_put_contents($filename, dbunescbin($nn['content']))) {
echo 'Failed to save file ' . $filename . PHP_EOL;
continue;