Delete on invalid

This commit is contained in:
Michael 2022-05-24 20:02:54 +00:00
parent 9da0e637a3
commit d3709d8497
2 changed files with 12 additions and 6 deletions

View File

@ -146,7 +146,8 @@ HELP;
}
if ($quit_on_invalid && $fields['photo'] == '') {
echo ' ' . $this->l10n->t('Quit') . "\n";
echo ' ' . $this->l10n->t('Quit on invalid photo %d', $contact['avatar']) . "\n";
Photo::delete(['resource-id' => $resourceid]);
return;
}

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2022.05-rc\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-24 19:09+0000\n"
"POT-Creation-Date: 2022-05-24 20:02+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1641,26 +1641,31 @@ msgstr ""
msgid "The contact has been blocked from the node"
msgstr ""
#: src/Console/MoveToAvatarCache.php:93
#: src/Console/MoveToAvatarCache.php:92
#, php-format
msgid "no resource in photo %s"
msgstr ""
#: src/Console/MoveToAvatarCache.php:101
#: src/Console/MoveToAvatarCache.php:118
#, php-format
msgid "no photo with id %s"
msgstr ""
#: src/Console/MoveToAvatarCache.php:110
#: src/Console/MoveToAvatarCache.php:127
#, php-format
msgid "no image data for photo with id %s"
msgstr ""
#: src/Console/MoveToAvatarCache.php:119
#: src/Console/MoveToAvatarCache.php:136
#, php-format
msgid "invalid image for id %s"
msgstr ""
#: src/Console/MoveToAvatarCache.php:149
#, php-format
msgid "Quit on invalid photo %d"
msgstr ""
#: src/Console/PostUpdate.php:87
#, php-format
msgid "Post update version number has been set to %s."