From cb2f7106069b1d40a7a753671fc7704cd364c32c Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 16 Feb 2018 12:39:54 -0800 Subject: [PATCH] Provide the document content as a context object when rendering Phriction documents Summary: Ref T13077. The context object wasn't being passed into the engine properly here, affecting relative link rendering in Phriction. Test Plan: Viewed rendered Phriction documents with relative links, got clean renders. Maniphest Tasks: T13077 Differential Revision: https://secure.phabricator.com/D19115 --- src/applications/phriction/storage/PhrictionContent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/phriction/storage/PhrictionContent.php b/src/applications/phriction/storage/PhrictionContent.php index 80fabcaddc..515fc6b7d5 100644 --- a/src/applications/phriction/storage/PhrictionContent.php +++ b/src/applications/phriction/storage/PhrictionContent.php @@ -54,6 +54,7 @@ final class PhrictionContent public function newRemarkupView(PhabricatorUser $viewer) { return id(new PHUIRemarkupView($viewer, $this->getContent())) + ->setContextObject($this) ->setRemarkupOption(PHUIRemarkupView::OPTION_GENERATE_TOC, true) ->setGenerateTableOfContents(true); }