forked from verdnatura/hedera-web
Image sync method fixes.
This commit is contained in:
parent
a07842e899
commit
3e26e49b86
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.407.30) stable; urgency=low
|
hedera-web (1.407.31) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.407.30",
|
"version": "1.407.31",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -60,7 +60,7 @@ class Sync extends Vn\Lib\Method {
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($res->num_rows == 0) continue;
|
if ($res->num_rows == 0) continue;
|
||||||
echo "Deleting {$res->num_rows} from collection '$collection'.\n";
|
echo "Recycling {$res->num_rows} images from collection '$collection'.\n";
|
||||||
|
|
||||||
while ($image = $res->fetch_object())
|
while ($image = $res->fetch_object())
|
||||||
if (!empty($image->name) && !in_array($image->name, ['.', '..'])) {
|
if (!empty($image->name) && !in_array($image->name, ['.', '..'])) {
|
||||||
|
@ -84,8 +84,9 @@ class Sync extends Vn\Lib\Method {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Syncronization finished. $deleteCount images moved to trash.\n";
|
echo "Total $deleteCount images moved to trash.\n";
|
||||||
|
echo "Syncronization finished.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue