Page MenuHomePhabricator

D7383.diff

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

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)

Event Timeline