mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Fix Phriction toc rendering when toc is null
Summary: Removes the exception, maybe there is a better way, but landing this for now. Fixes T9829 Test Plan: Test pages with and without a table of contents Reviewers: epriestley, avivey Subscribers: epriestley Maniphest Tasks: T9829 Differential Revision: https://secure.phabricator.com/D14546
This commit is contained in:
parent
ff57b1e6e7
commit
06aa3a0a1b
1 changed files with 0 additions and 3 deletions
|
@ -115,9 +115,6 @@ final class PhrictionContent extends PhrictionDAO
|
||||||
* @task markup
|
* @task markup
|
||||||
*/
|
*/
|
||||||
public function getRenderedTableOfContents() {
|
public function getRenderedTableOfContents() {
|
||||||
if ($this->renderedTableOfContents === null) {
|
|
||||||
throw new PhutilInvalidStateException('didMarkupText');
|
|
||||||
}
|
|
||||||
return $this->renderedTableOfContents;
|
return $this->renderedTableOfContents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue