Skip to content

Commit a4923d8

Browse files
author
Joan He
committed
MC-15575: Correct filter output
1 parent 1f34e8c commit a4923d8

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/Email/Model/Template
  • dev/tests/integration/testsuite/Magento/Email/Model/Template

2 files changed

+2
-2
lines changed

app/code/Magento/Email/Model/Template/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ public function cssDirective($construction)
849849
return $css;
850850
} else {
851851
// Return CSS comment for debugging purposes
852-
return '/* ' . sprintf(__('Contents of %s could not be loaded or is empty'), $file) . ' */';
852+
return '/* ' . __('Contents of the specified CSS file could not be loaded or is empty') . ' */';
853853
}
854854
}
855855

dev/tests/integration/testsuite/Magento/Email/Model/Template/FilterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function cssDirectiveDataProvider()
267267
'Empty or missing file' => [
268268
TemplateTypesInterface::TYPE_HTML,
269269
'file="css/non-existent-file.css"',
270-
'/* Contents of css/non-existent-file.css could not be loaded or is empty */'
270+
'/* Contents of the specified CSS file could not be loaded or is empty */'
271271
],
272272
'File with compilation error results in error message' => [
273273
TemplateTypesInterface::TYPE_HTML,

0 commit comments

Comments
 (0)