Skip to content

Commit 9982f49

Browse files
committed
BaseControl::translate() ignores IHtmlString
1 parent 608d595 commit 9982f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public function translate($value, ...$parameters)
396396
if ($translator = $this->getTranslator()) {
397397
$tmp = is_array($value) ? [&$value] : [[&$value]];
398398
foreach ($tmp[0] as &$v) {
399-
if ($v != null && !$v instanceof Html) { // intentionally ==
399+
if ($v != null && !$v instanceof Nette\Utils\IHtmlString) { // intentionally ==
400400
$v = $translator->translate($v, ...$parameters);
401401
}
402402
}

0 commit comments

Comments
 (0)