From 0374f0e523c8b37a257b6e1404aafa2dc8c7100a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 24 May 2022 19:45:02 +0200 Subject: [PATCH] Use correct placeholder --- src/Console/MoveToAvatarCache.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/MoveToAvatarCache.php b/src/Console/MoveToAvatarCache.php index dfb2e2ec2d..2d14f405fe 100644 --- a/src/Console/MoveToAvatarCache.php +++ b/src/Console/MoveToAvatarCache.php @@ -89,26 +89,26 @@ HELP; echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t"; $resourceid = Photo::ridFromURI($contact['photo']); if (empty($resourceid)) { - echo $this->l10n->t('no resource in photo %1', $contact['photo']) . "\n"; + echo $this->l10n->t('no resource in photo %s', $contact['photo']) . "\n"; continue; } echo '1'; $photo = Photo::selectFirst([], ['resource-id' => $resourceid], ['order' => ['scale']]); if (empty($photo)) { - echo ' ' . $this->l10n->t('no photo with id %1', $resourceid) . "\n"; + echo ' ' . $this->l10n->t('no photo with id %s', $resourceid) . "\n"; continue; } echo '2'; $imgdata = Photo::getImageDataForPhoto($photo); 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 %s', $resourceid) . "\n"; continue; } echo '3'; $image = new Image($imgdata, Images::getMimeTypeByData($imgdata)); if (!$image->isValid()) { - echo ' ' . $this->l10n->t('invalid image for id %1', $resourceid) . "\n"; + echo ' ' . $this->l10n->t('invalid image for id %s', $resourceid) . "\n"; continue; } -- 2.39.5