A space in front of a message looks better

This commit is contained in:
Michael Vogel 2022-05-24 19:36:48 +02:00
parent f764ab7429
commit eddfab7122

View File

@ -95,20 +95,20 @@ HELP;
echo '1'; echo '1';
$photo = Photo::selectFirst([], ['resource-id' => $resourceid], ['order' => ['scale']]); $photo = Photo::selectFirst([], ['resource-id' => $resourceid], ['order' => ['scale']]);
if (empty($photo)) { if (empty($photo)) {
echo $this->l10n->t('no photo with id %1', $resourceid) . "\n"; echo ' ' . $this->l10n->t('no photo with id %1', $resourceid) . "\n";
continue; continue;
} }
echo '2'; echo '2';
$imgdata = Photo::getImageDataForPhoto($photo); $imgdata = Photo::getImageDataForPhoto($photo);
if (empty($imgdata)) { if (empty($imgdata)) {
echo $this->l10n->t('no image data for photo with id %1', $resourceid) . "\n"; echo ' ' . $this->l10n->t('no image data for photo with id %1', $resourceid) . "\n";
continue; continue;
} }
echo '3'; echo '3';
$image = new Image($imgdata, Images::getMimeTypeByData($imgdata)); $image = new Image($imgdata, Images::getMimeTypeByData($imgdata));
if (!$image->isValid()) { if (!$image->isValid()) {
echo $this->l10n->t('invalid image for id %1', $resourceid) . "\n"; echo ' ' . $this->l10n->t('invalid image for id %1', $resourceid) . "\n";
continue; continue;
} }