From 679f5300549265265857377d0bd69903cc257ef4 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 17 Oct 2012 09:12:08 -0700 Subject: [PATCH] Respect `phriction.enabled` in config Summary: Eventually we'll have a real "uninstall" sort of thing, but until we do we should keep respecting this flag. Test Plan: Disabled the flag, saw Phriction vanish from the application list. Reviewers: btrahan, vrana Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D3724 --- .../phriction/application/PhabricatorApplicationPhriction.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/applications/phriction/application/PhabricatorApplicationPhriction.php b/src/applications/phriction/application/PhabricatorApplicationPhriction.php index 3f546f7fef..77e26f6997 100644 --- a/src/applications/phriction/application/PhabricatorApplicationPhriction.php +++ b/src/applications/phriction/application/PhabricatorApplicationPhriction.php @@ -34,6 +34,10 @@ final class PhabricatorApplicationPhriction extends PhabricatorApplication { return PhabricatorEnv::getDoclink('article/Phriction_User_Guide.html'); } + public function isEnabled() { + return PhabricatorEnv::getEnvConfig('phriction.enabled'); + } + public function getRoutes() { return array( // Match "/w/" with slug "/".