mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Fix an exception when viewing Phriction diffs.
Summary: D4117 (which is otherwise awesome :)) requires you to `setMarkupEngine()` and Phriction's diff rendering wasn't changed to call that with a `PhabricatorMarkupEngine`. Test Plan: Went to a Phriction diff page and saw it render correctly. Reviewers: epriestley, btrahan, vrana Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4132
This commit is contained in:
parent
a8b84a26fe
commit
d704bf3a55
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,11 @@ final class PhrictionDiffController
|
||||||
$parser->setRenderingReference("{$l},{$r}");
|
$parser->setRenderingReference("{$l},{$r}");
|
||||||
$parser->setWhitespaceMode($whitespace_mode);
|
$parser->setWhitespaceMode($whitespace_mode);
|
||||||
|
|
||||||
|
$engine = new PhabricatorMarkupEngine();
|
||||||
|
$engine->setViewer($user);
|
||||||
|
$engine->process();
|
||||||
|
$parser->setMarkupEngine($engine);
|
||||||
|
|
||||||
$spec = $request->getStr('range');
|
$spec = $request->getStr('range');
|
||||||
list($range_s, $range_e, $mask) =
|
list($range_s, $range_e, $mask) =
|
||||||
DifferentialChangesetParser::parseRangeSpecification($spec);
|
DifferentialChangesetParser::parseRangeSpecification($spec);
|
||||||
|
|
Loading…
Reference in a new issue