From e3005fad09f5de20a2b23105557b2d8da13b6998 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Wed, 9 Oct 2013 15:25:03 -0700 Subject: [PATCH] Hide Audit information on Home when the application is uninstalled Test Plan: Looked at Home with Audit installed and uninstalled. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7277 --- .../PhabricatorDirectoryMainController.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/applications/directory/controller/PhabricatorDirectoryMainController.php b/src/applications/directory/controller/PhabricatorDirectoryMainController.php index 0936d0a361..672d6f0c41 100644 --- a/src/applications/directory/controller/PhabricatorDirectoryMainController.php +++ b/src/applications/directory/controller/PhabricatorDirectoryMainController.php @@ -41,15 +41,23 @@ final class PhabricatorDirectoryMainController $tasks_panel = null; } + $audit = 'PhabricatorApplicationAudit'; + if (PhabricatorApplication::isClassInstalled($audit)) { + $audit_panel = $this->buildAuditPanel(); + $commit_panel = $this->buildCommitPanel(); + } else { + $audit_panel = null; + $commit_panel = null; + } + if (PhabricatorEnv::getEnvConfig('welcome.html') !== null) { $welcome_panel = $this->buildWelcomePanel(); } else { $welcome_panel = null; } + $jump_panel = $this->buildJumpPanel(); $revision_panel = $this->buildRevisionPanel(); - $audit_panel = $this->buildAuditPanel(); - $commit_panel = $this->buildCommitPanel(); $content = array( $jump_panel,