Skip to content

Commit 1bafe32

Browse files
committed
provide translation parameters in correct order
1 parent aecaa4a commit 1bafe32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Admin/Asset/AssetController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ public function replaceAssetAction(Request $request, TranslatorInterface $transl
576576
if ($newType != $asset->getType()) {
577577
return $this->adminJson([
578578
'success' => false,
579-
'message' => sprintf($translator->trans('asset_type_change_not_allowed', [], 'admin'), $asset->getType(), $newType),
579+
'message' => sprintf($translator->trans('asset_type_change_not_allowed', [], 'admin'), $newType, $asset->getType()),
580580
]);
581581
}
582582

0 commit comments

Comments
 (0)