mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-08 21:08:29 +01:00
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
This commit is contained in:
parent
66a7ca49b2
commit
cb2f710606
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ final class PhrictionContent
|
||||||
|
|
||||||
public function newRemarkupView(PhabricatorUser $viewer) {
|
public function newRemarkupView(PhabricatorUser $viewer) {
|
||||||
return id(new PHUIRemarkupView($viewer, $this->getContent()))
|
return id(new PHUIRemarkupView($viewer, $this->getContent()))
|
||||||
|
->setContextObject($this)
|
||||||
->setRemarkupOption(PHUIRemarkupView::OPTION_GENERATE_TOC, true)
|
->setRemarkupOption(PHUIRemarkupView::OPTION_GENERATE_TOC, true)
|
||||||
->setGenerateTableOfContents(true);
|
->setGenerateTableOfContents(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue