fix storageconv issue with postgres
This commit is contained in:
parent
55792d5528
commit
0e2239e50b
@ -55,11 +55,14 @@ if($argc == 2) {
|
|||||||
$storage
|
$storage
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$img_path = dbunescbin($xx['content']);
|
||||||
|
|
||||||
foreach($n as $nn) {
|
foreach($n as $nn) {
|
||||||
|
|
||||||
echo '.';
|
echo '.';
|
||||||
|
|
||||||
$filename = dbunescbin($xx['content']) . '-' . $nn['imgscale'];
|
$filename = $img_path . '-' . $nn['imgscale'];
|
||||||
|
|
||||||
if(! file_put_contents($filename, dbunescbin($nn['content']))) {
|
if(! file_put_contents($filename, dbunescbin($nn['content']))) {
|
||||||
echo 'Failed to save file ' . $filename . PHP_EOL;
|
echo 'Failed to save file ' . $filename . PHP_EOL;
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user