mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +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:
parent
100760fb31
commit
7a9768fc79
1 changed files with 5 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue