Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F76053
D7383.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7383.diff
View Options
diff --git a/src/applications/differential/field/specification/DifferentialUnitFieldSpecification.php b/src/applications/differential/field/specification/DifferentialUnitFieldSpecification.php
--- a/src/applications/differential/field/specification/DifferentialUnitFieldSpecification.php
+++ b/src/applications/differential/field/specification/DifferentialUnitFieldSpecification.php
@@ -71,6 +71,9 @@
}
$udata = isort($udata, 'sort');
+ $engine = PhabricatorMarkupEngine::newDifferentialMarkupEngine();
+ $engine->setConfig('viewer', $this->getUser());
+
foreach ($udata as $test) {
$result = idx($test, 'result');
@@ -115,8 +118,6 @@
if ($userdata !== false) {
$userdata = str_replace("\000", '', $userdata);
}
- $engine = PhabricatorMarkupEngine::newDifferentialMarkupEngine();
- $engine->setConfig('viewer', $this->getUser());
$userdata = $engine->markupText($userdata);
$rows[] = array(
'style' => 'details',
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/42/hq/hq7efps7zpg2xl2c
Default Alt Text
D7383.diff (1 KB)
Attached To
Mode
D7383: Create just a single PhabricatorMarkupEngine when rendering tests
Attached
Detach File
Event Timeline
Log In to Comment