Page MenuHomePhabricator

D16244.diff
No OneTemporary

D16244.diff

diff --git a/src/internationalization/PhutilTranslator.php b/src/internationalization/PhutilTranslator.php
--- a/src/internationalization/PhutilTranslator.php
+++ b/src/internationalization/PhutilTranslator.php
@@ -106,7 +106,8 @@
// any escaping necessary and output HTML.
$is_html = false;
foreach ($args as $arg) {
- if ($arg instanceof PhutilSafeHTML) {
+ if ($arg instanceof PhutilSafeHTML ||
+ $arg instanceof PhutilSafeHTMLProducerInterface) {
$is_html = true;
break;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 28, 3:39 PM (1 w, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7607258
Default Alt Text
D16244.diff (537 B)

Event Timeline