mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Fix reversed order of boolean config options.
Summary: See discussion in D4355, this fixes reversed bool logic. Test Plan: - Quickly viewed in the web interface to make sure it didn't break anything. - Saved `ldap.auth-enabled` with correct boolean value in the db. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4357
This commit is contained in:
parent
0f1086fd68
commit
f7939b90e3
11 changed files with 33 additions and 30 deletions
|
@ -18,7 +18,8 @@ final class PhabricatorAuthenticationConfigOptions
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Allow password authentication"),
|
pht("Allow password authentication"),
|
||||||
pht("Don't allow password authentication")))
|
pht("Don't allow password authentication")
|
||||||
|
))
|
||||||
->setSummary(pht("Enables password-based authentication."))
|
->setSummary(pht("Enables password-based authentication."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -60,7 +61,8 @@ final class PhabricatorAuthenticationConfigOptions
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Require email verification"),
|
pht("Require email verification"),
|
||||||
pht("Don't require email verification")))
|
pht("Don't require email verification")
|
||||||
|
))
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht("Require email verification before a user can log in."))
|
pht("Require email verification before a user can log in."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
@ -96,7 +98,8 @@ final class PhabricatorAuthenticationConfigOptions
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Allow editing"),
|
pht("Allow editing"),
|
||||||
pht("Prevent editing")))
|
pht("Prevent editing")
|
||||||
|
))
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht(
|
pht(
|
||||||
"Determines whether or not basic account information is ".
|
"Determines whether or not basic account information is ".
|
||||||
|
|
|
@ -53,8 +53,8 @@ final class PhabricatorCoreConfigOptions
|
||||||
$this->newOption('phabricator.serious-business', 'bool', false)
|
$this->newOption('phabricator.serious-business', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht('Shenanigans'), // That should be interesting to translate. :P
|
|
||||||
pht('Serious business'),
|
pht('Serious business'),
|
||||||
|
pht('Shenanigans'), // That should be interesting to translate. :P
|
||||||
))
|
))
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht("Should Phabricator be serious?"))
|
pht("Should Phabricator be serious?"))
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('darkconsole.enabled', 'bool', false)
|
$this->newOption('darkconsole.enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable DarkConsole"),
|
|
||||||
pht("Enable DarkConsole"),
|
pht("Enable DarkConsole"),
|
||||||
|
pht("Disable DarkConsole"),
|
||||||
))
|
))
|
||||||
->setSummary(pht("Enable Phabricator's debugging console."))
|
->setSummary(pht("Enable Phabricator's debugging console."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
@ -35,8 +35,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('darkconsole.always-on', 'bool', false)
|
$this->newOption('darkconsole.always-on', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Require DarkConsole Activation"),
|
|
||||||
pht("Always Activate DarkConsole"),
|
pht("Always Activate DarkConsole"),
|
||||||
|
pht("Require DarkConsole Activation"),
|
||||||
))
|
))
|
||||||
->setSummary(pht("Activate DarkConsole on every page."))
|
->setSummary(pht("Activate DarkConsole on every page."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
@ -50,8 +50,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('debug.stop-on-redirect', 'bool', false)
|
$this->newOption('debug.stop-on-redirect', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Use Normal HTTP Redirects"),
|
|
||||||
pht("Stop Before HTTP Redirect"),
|
pht("Stop Before HTTP Redirect"),
|
||||||
|
pht("Use Normal HTTP Redirects"),
|
||||||
))
|
))
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht(
|
pht(
|
||||||
|
@ -89,8 +89,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('phabricator.show-stack-traces', 'bool', false)
|
$this->newOption('phabricator.show-stack-traces', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht('Hide stack traces'),
|
|
||||||
pht('Show stack traces'),
|
pht('Show stack traces'),
|
||||||
|
pht('Hide stack traces'),
|
||||||
))
|
))
|
||||||
->setSummary(pht("Show stack traces when unhandled exceptions occur."))
|
->setSummary(pht("Show stack traces when unhandled exceptions occur."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
@ -101,8 +101,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('phabricator.show-error-callout', 'bool', false)
|
$this->newOption('phabricator.show-error-callout', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht('Hide error callout'),
|
|
||||||
pht('Show error callout'),
|
pht('Show error callout'),
|
||||||
|
pht('Hide error callout'),
|
||||||
))
|
))
|
||||||
->setSummary(pht("Show error callout."))
|
->setSummary(pht("Show error callout."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
@ -114,8 +114,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('celerity.force-disk-reads', 'bool', false)
|
$this->newOption('celerity.force-disk-reads', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Don't force disk reads"),
|
|
||||||
pht('Force disk reads'),
|
pht('Force disk reads'),
|
||||||
|
pht("Don't force disk reads"),
|
||||||
))
|
))
|
||||||
->setSummary(pht("Force Celerity to read from disk on every request."))
|
->setSummary(pht("Force Celerity to read from disk on every request."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
@ -131,8 +131,8 @@ final class PhabricatorDeveloperConfigOptions
|
||||||
$this->newOption('celerity.minify', 'bool', false)
|
$this->newOption('celerity.minify', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Don't minify static resources."),
|
|
||||||
pht('Minify static resources.'),
|
pht('Minify static resources.'),
|
||||||
|
pht("Don't minify static resources."),
|
||||||
))
|
))
|
||||||
->setSummary(pht("Minify static Celerity resources."))
|
->setSummary(pht("Minify static Celerity resources."))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorDisqusConfigOptions
|
||||||
$this->newOption('disqus.auth-enabled', 'bool', false)
|
$this->newOption('disqus.auth-enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Disqus Authentication"),
|
|
||||||
pht("Enable Disqus Authentication"),
|
pht("Enable Disqus Authentication"),
|
||||||
|
pht("Disable Disqus Authentication"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -25,8 +25,8 @@ final class PhabricatorDisqusConfigOptions
|
||||||
$this->newOption('disqus.registration-enabled', 'bool', true)
|
$this->newOption('disqus.registration-enabled', 'bool', true)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Disqus Registration"),
|
|
||||||
pht("Enable Disqus Registration"),
|
pht("Enable Disqus Registration"),
|
||||||
|
pht("Disable Disqus Registration"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -35,8 +35,8 @@ final class PhabricatorDisqusConfigOptions
|
||||||
$this->newOption('disqus.auth-permanent', 'bool', false)
|
$this->newOption('disqus.auth-permanent', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Allow Disqus Account Unlinking"),
|
|
||||||
pht("Permanently Bind Disqus Accounts"),
|
pht("Permanently Bind Disqus Accounts"),
|
||||||
|
pht("Allow Disqus Account Unlinking"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorFacebookConfigOptions
|
||||||
$this->newOption('facebook.auth-enabled', 'bool', false)
|
$this->newOption('facebook.auth-enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Facebook Authentication"),
|
|
||||||
pht("Enable Facebook Authentication"),
|
pht("Enable Facebook Authentication"),
|
||||||
|
pht("Disable Facebook Authentication"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -25,8 +25,8 @@ final class PhabricatorFacebookConfigOptions
|
||||||
$this->newOption('facebook.registration-enabled', 'bool', true)
|
$this->newOption('facebook.registration-enabled', 'bool', true)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Facebook Registration"),
|
|
||||||
pht("Enable Facebook Registration"),
|
pht("Enable Facebook Registration"),
|
||||||
|
pht("Disable Facebook Registration"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -35,8 +35,8 @@ final class PhabricatorFacebookConfigOptions
|
||||||
$this->newOption('facebook.auth-permanent', 'bool', false)
|
$this->newOption('facebook.auth-permanent', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Allow Facebook Account Unlinking"),
|
|
||||||
pht("Permanently Bind Facebook Accounts"),
|
pht("Permanently Bind Facebook Accounts"),
|
||||||
|
pht("Allow Facebook Account Unlinking"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -53,8 +53,8 @@ final class PhabricatorFacebookConfigOptions
|
||||||
$this->newOption('facebook.require-https-auth', 'bool', false)
|
$this->newOption('facebook.require-https-auth', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Do Not Require HTTPS"),
|
|
||||||
pht("Require HTTPS"),
|
pht("Require HTTPS"),
|
||||||
|
pht("Do Not Require HTTPS"),
|
||||||
))
|
))
|
||||||
->setSummary(
|
->setSummary(
|
||||||
pht(
|
pht(
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorGitHubConfigOptions
|
||||||
$this->newOption('github.auth-enabled', 'bool', false)
|
$this->newOption('github.auth-enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable GitHub Authentication"),
|
|
||||||
pht("Enable GitHub Authentication"),
|
pht("Enable GitHub Authentication"),
|
||||||
|
pht("Disable GitHub Authentication"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -25,8 +25,8 @@ final class PhabricatorGitHubConfigOptions
|
||||||
$this->newOption('github.registration-enabled', 'bool', true)
|
$this->newOption('github.registration-enabled', 'bool', true)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable GitHub Registration"),
|
|
||||||
pht("Enable GitHub Registration"),
|
pht("Enable GitHub Registration"),
|
||||||
|
pht("Disable GitHub Registration"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -35,8 +35,8 @@ final class PhabricatorGitHubConfigOptions
|
||||||
$this->newOption('github.auth-permanent', 'bool', false)
|
$this->newOption('github.auth-permanent', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Allow GitHub Account Unlinking"),
|
|
||||||
pht("Permanently Bind GitHub Accounts"),
|
pht("Permanently Bind GitHub Accounts"),
|
||||||
|
pht("Allow GitHub Account Unlinking"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorGoogleConfigOptions
|
||||||
$this->newOption('google.auth-enabled', 'bool', false)
|
$this->newOption('google.auth-enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Google Authentication"),
|
|
||||||
pht("Enable Google Authentication"),
|
pht("Enable Google Authentication"),
|
||||||
|
pht("Disable Google Authentication"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -25,8 +25,8 @@ final class PhabricatorGoogleConfigOptions
|
||||||
$this->newOption('google.registration-enabled', 'bool', true)
|
$this->newOption('google.registration-enabled', 'bool', true)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Google Registration"),
|
|
||||||
pht("Enable Google Registration"),
|
pht("Enable Google Registration"),
|
||||||
|
pht("Disable Google Registration"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
@ -35,8 +35,8 @@ final class PhabricatorGoogleConfigOptions
|
||||||
$this->newOption('google.auth-permanent', 'bool', false)
|
$this->newOption('google.auth-permanent', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Allow Google Account Unlinking"),
|
|
||||||
pht("Permanently Bind Google Accounts"),
|
pht("Permanently Bind Google Accounts"),
|
||||||
|
pht("Allow Google Account Unlinking"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht(
|
pht(
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorLDAPConfigOptions
|
||||||
$this->newOption('ldap.auth-enabled', 'bool', false)
|
$this->newOption('ldap.auth-enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable LDAP Authentication"),
|
|
||||||
pht("Enable LDAP Authentication"),
|
pht("Enable LDAP Authentication"),
|
||||||
|
pht("Disable LDAP Authentication"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht('Enable LDAP for authentication and registration.')),
|
pht('Enable LDAP for authentication and registration.')),
|
||||||
|
@ -41,8 +41,8 @@ final class PhabricatorLDAPConfigOptions
|
||||||
$this->newOption('ldap.search-first', 'bool', false)
|
$this->newOption('ldap.search-first', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disabled"),
|
|
||||||
pht("Enabled"),
|
pht("Enabled"),
|
||||||
|
pht("Disabled"),
|
||||||
)),
|
)),
|
||||||
$this->newOption('ldap.username-attribute', 'string', null),
|
$this->newOption('ldap.username-attribute', 'string', null),
|
||||||
$this->newOption('ldap.real_name_attributes', 'list<string>', array())
|
$this->newOption('ldap.real_name_attributes', 'list<string>', array())
|
||||||
|
@ -56,8 +56,8 @@ final class PhabricatorLDAPConfigOptions
|
||||||
$this->newOption('ldap.referrals', 'bool', true)
|
$this->newOption('ldap.referrals', 'bool', true)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Do Not Follow Referrals"),
|
|
||||||
pht("Follow Referrals"),
|
pht("Follow Referrals"),
|
||||||
|
pht("Do Not Follow Referrals"),
|
||||||
))
|
))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht("You may need to disable this if you use Windows 2003 ".
|
pht("You may need to disable this if you use Windows 2003 ".
|
||||||
|
|
|
@ -16,8 +16,8 @@ final class PhabricatorNotificationConfigOptions
|
||||||
$this->newOption('notification.enabled', 'bool', false)
|
$this->newOption('notification.enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Real-Time Notifications"),
|
|
||||||
pht("Enable Real-Time Notifications"),
|
pht("Enable Real-Time Notifications"),
|
||||||
|
pht("Disable Real-Time Notifications"),
|
||||||
))
|
))
|
||||||
->setSummary(pht('Enable real-time notifications.'))
|
->setSummary(pht('Enable real-time notifications.'))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
|
|
@ -17,8 +17,8 @@ final class PhabricatorRecaptchaConfigOptions
|
||||||
$this->newOption('recaptcha.enabled', 'bool', false)
|
$this->newOption('recaptcha.enabled', 'bool', false)
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht("Disable Recaptcha"),
|
|
||||||
pht("Enable Recaptcha"),
|
pht("Enable Recaptcha"),
|
||||||
|
pht("Disable Recaptcha"),
|
||||||
))
|
))
|
||||||
->setSummary(pht('Enable captchas with Recaptcha.'))
|
->setSummary(pht('Enable captchas with Recaptcha.'))
|
||||||
->setDescription(
|
->setDescription(
|
||||||
|
|
|
@ -75,8 +75,8 @@ final class PhabricatorSecurityConfigOptions
|
||||||
"\$_SERVER['HTTPS'] to the correct value."))
|
"\$_SERVER['HTTPS'] to the correct value."))
|
||||||
->setOptions(
|
->setOptions(
|
||||||
array(
|
array(
|
||||||
pht('Allow HTTP'),
|
|
||||||
pht('Force HTTPS'),
|
pht('Force HTTPS'),
|
||||||
|
pht('Allow HTTP'),
|
||||||
)),
|
)),
|
||||||
$this->newOption(
|
$this->newOption(
|
||||||
'phabricator.csrf-key',
|
'phabricator.csrf-key',
|
||||||
|
|
Loading…
Reference in a new issue