1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Respect unified view in Diffusion

Summary: Ref T2009. Respect preference and make 1up/2up options work properly.

Test Plan: Toggled 1up vs 2up in Diffusion.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T2009

Differential Revision: https://secure.phabricator.com/D12015
This commit is contained in:
epriestley 2015-03-08 11:20:08 -07:00
parent 100760fb31
commit 7a9768fc79

View file

@ -77,8 +77,7 @@ final class DiffusionDiffController extends DiffusionController {
'action' => 'rendering-ref',
)));
$parser->setCharacterEncoding($request->getStr('encoding'));
$parser->setHighlightAs($request->getStr('highlight'));
$parser->readParametersFromRequest($request);
$coverage = $drequest->loadCoverage();
if ($coverage) {
@ -126,9 +125,11 @@ final class DiffusionDiffController extends DiffusionController {
$spec = $request->getStr('range');
list($range_s, $range_e, $mask) =
DifferentialChangesetParser::parseRangeSpecification($spec);
$output = $parser->render($range_s, $range_e, $mask);
$parser->setRange($range_s, $range_e);
$parser->setMask($mask);
return id(new PhabricatorChangesetResponse())
->setRenderedChangeset($output);
->setRenderedChangeset($parser->renderChangeset());
}
}