From 3998bcc10422d0d5473f55187db97b28ba73a66d Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 15 Jan 2013 06:31:53 -0800 Subject: [PATCH] Phriction setting. Summary: One setting. Test Plan: - Looked at the setting in the web interface. - Waved to it - Introduced myself - Had a nice conversation - Made a new friend - Turns out `phriction.enabled` is a nice guy. Reviewers: epriestley, chad Reviewed By: chad CC: aran, Korvin Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4436 --- src/__phutil_library_map__.php | 2 ++ .../PhabricatorPhrictionConfigOptions.php | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/applications/phriction/config/PhabricatorPhrictionConfigOptions.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 5f3dfb12b0..a952d931e3 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1051,6 +1051,7 @@ phutil_register_library_map(array( 'PhabricatorPeopleLogsController' => 'applications/people/controller/PhabricatorPeopleLogsController.php', 'PhabricatorPeopleProfileController' => 'applications/people/controller/PhabricatorPeopleProfileController.php', 'PhabricatorPeopleQuery' => 'applications/people/PhabricatorPeopleQuery.php', + 'PhabricatorPhrictionConfigOptions' => 'applications/phriction/config/PhabricatorPhrictionConfigOptions.php', 'PhabricatorPinboardItemView' => 'view/layout/PhabricatorPinboardItemView.php', 'PhabricatorPinboardView' => 'view/layout/PhabricatorPinboardView.php', 'PhabricatorPolicies' => 'applications/policy/constants/PhabricatorPolicies.php', @@ -2398,6 +2399,7 @@ phutil_register_library_map(array( 'PhabricatorPeopleLogsController' => 'PhabricatorPeopleController', 'PhabricatorPeopleProfileController' => 'PhabricatorPeopleController', 'PhabricatorPeopleQuery' => 'PhabricatorOffsetPagedQuery', + 'PhabricatorPhrictionConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorPinboardItemView' => 'AphrontView', 'PhabricatorPinboardView' => 'AphrontView', 'PhabricatorPolicies' => 'PhabricatorPolicyConstants', diff --git a/src/applications/phriction/config/PhabricatorPhrictionConfigOptions.php b/src/applications/phriction/config/PhabricatorPhrictionConfigOptions.php new file mode 100644 index 0000000000..0b49152ff8 --- /dev/null +++ b/src/applications/phriction/config/PhabricatorPhrictionConfigOptions.php @@ -0,0 +1,26 @@ +newOption('phriction.enabled', 'bool', true) + ->setBoolOptions( + array( + pht("Enable Phriction"), + pht("Disable Phriction"), + )) + ->setDescription(pht("Enable or disable Phriction.")) + ); + } + +}