Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15445715
D16244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
537 B
Referenced Files
None
Subscribers
None
D16244.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16244: let pht expect PhutilSafeHTMLProducerInterface
Attached
Detach File
Event Timeline
Log In to Comment