1
0
Fork 0
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:
Chad Little 2015-11-22 22:57:57 -08:00
parent ff57b1e6e7
commit 06aa3a0a1b

View file

@ -115,9 +115,6 @@ final class PhrictionContent extends PhrictionDAO
* @task markup
*/
public function getRenderedTableOfContents() {
if ($this->renderedTableOfContents === null) {
throw new PhutilInvalidStateException('didMarkupText');
}
return $this->renderedTableOfContents;
}