Skip to content

Commit 1b8719c

Browse files
author
Ji Lu
committed
MAGETWO-36450: Set placeholder as default render for \Magento\Framework\Phrase if no renderer is set.
1 parent 883745b commit 1b8719c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Phrase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getArguments()
9898
*/
9999
public function render()
100100
{
101-
return $this->getRenderer()->render([$this->text], $this->arguments);
101+
return self::getRenderer() ? self::getRenderer()->render([$this->text], $this->arguments) : $this->text;
102102
}
103103

104104
/**

0 commit comments

Comments
 (0)