1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix undefined index header.generate-toc in Differential

Summary:
getMarkupEngineDefaultConfiguration() is not setting
header.generate-toc. This is causing "undefined index" in Differential
page.

Test Plan:
  - Differential reviion page renders correctly
  - Phriction page renders correctly

Reviewers: epriestley, tuomaspelkonen, nh

Reviewed By: nh

CC: aran, nh

Differential Revision: https://secure.phabricator.com/D1342
This commit is contained in:
Jason Ge 2012-01-06 23:32:15 -08:00
parent 684d12d5db
commit 3a142c8788

View file

@ -78,6 +78,7 @@ class PhabricatorMarkupEngine {
'custom-inline' => array(), 'custom-inline' => array(),
'custom-block' => array(), 'custom-block' => array(),
'differential.diff' => null, 'differential.diff' => null,
'header.generate-toc' => false,
'macros' => true, 'macros' => true,
'uri.allowed-protocols' => PhabricatorEnv::getEnvConfig( 'uri.allowed-protocols' => PhabricatorEnv::getEnvConfig(
'uri.allowed-protocols'), 'uri.allowed-protocols'),