From 58716521bd943602d12e97d17bc940127974b738 Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 21 Nov 2012 10:57:29 -0800 Subject: [PATCH] Disable Maniphest Remarkup rule with disabled Maniphest Test Plan: Disabled Maniphest, wrote T1000, enabled, wrote T1000. Reviewers: pieter, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4010 --- src/infrastructure/markup/PhabricatorMarkupEngine.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/infrastructure/markup/PhabricatorMarkupEngine.php b/src/infrastructure/markup/PhabricatorMarkupEngine.php index 3e0273e1aa..ea133a3a1a 100644 --- a/src/infrastructure/markup/PhabricatorMarkupEngine.php +++ b/src/infrastructure/markup/PhabricatorMarkupEngine.php @@ -400,13 +400,17 @@ final class PhabricatorMarkupEngine { $rules[] = new PhabricatorRemarkupRulePhriction(); $rules[] = new PhabricatorRemarkupRuleDifferentialHandle(); - $rules[] = new PhabricatorRemarkupRuleManiphestHandle(); + if (PhabricatorEnv::getEnvConfig('maniphest.enabled')) { + $rules[] = new PhabricatorRemarkupRuleManiphestHandle(); + } $rules[] = new PhabricatorRemarkupRuleEmbedFile(); $rules[] = new PhabricatorRemarkupRuleDifferential(); $rules[] = new PhabricatorRemarkupRuleDiffusion(); - $rules[] = new PhabricatorRemarkupRuleManiphest(); + if (PhabricatorEnv::getEnvConfig('maniphest.enabled')) { + $rules[] = new PhabricatorRemarkupRuleManiphest(); + } $rules[] = new PhabricatorRemarkupRulePaste(); $rules[] = new PhabricatorRemarkupRuleCountdown();