Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorSetupCheckExtraConfig.php
| Show All 23 Lines | foreach ($all_keys as $key) { | ||||
| "The configuration option '%s' has been removed. You may delete ". | "The configuration option '%s' has been removed. You may delete ". | ||||
| "it at your convenience.". | "it at your convenience.". | ||||
| "\n\n%s", | "\n\n%s", | ||||
| $key, | $key, | ||||
| $ancient_config[$key]); | $ancient_config[$key]); | ||||
| $short = pht('Obsolete Config'); | $short = pht('Obsolete Config'); | ||||
| $name = pht('Obsolete Configuration Option "%s"', $key); | $name = pht('Obsolete Configuration Option "%s"', $key); | ||||
| } else { | } else { | ||||
| $summary = pht("This option is not recognized. It may be misspelled."); | $summary = pht('This option is not recognized. It may be misspelled.'); | ||||
| $message = pht( | $message = pht( | ||||
| "The configuration option '%s' is not recognized. It may be ". | "The configuration option '%s' is not recognized. It may be ". | ||||
| "misspelled, or it might have existed in an older version of ". | "misspelled, or it might have existed in an older version of ". | ||||
| "Phabricator. It has no effect, and should be corrected or deleted.", | "Phabricator. It has no effect, and should be corrected or deleted.", | ||||
| $key); | $key); | ||||
| $short = pht('Unknown Config'); | $short = pht('Unknown Config'); | ||||
| $name = pht('Unknown Configuration Option "%s"', $key); | $name = pht('Unknown Configuration Option "%s"', $key); | ||||
| } | } | ||||
| Show All 19 Lines | foreach ($all_keys as $key) { | ||||
| } | } | ||||
| if ($source instanceof PhabricatorConfigLocalSource) { | if ($source instanceof PhabricatorConfigLocalSource) { | ||||
| $found_local = true; | $found_local = true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| $message = $message."\n\n".pht( | $message = $message."\n\n".pht( | ||||
| "This configuration value is defined in these %d ". | 'This configuration value is defined in these %d '. | ||||
| "configuration source(s): %s.", | 'configuration source(s): %s.', | ||||
| count($found), | count($found), | ||||
| implode(', ', $found)); | implode(', ', $found)); | ||||
| $issue->setMessage($message); | $issue->setMessage($message); | ||||
| if ($found_local) { | if ($found_local) { | ||||
| $command = csprintf('phabricator/ $ ./bin/config delete %s', $key); | $command = csprintf('phabricator/ $ ./bin/config delete %s', $key); | ||||
| $issue->addCommand($command); | $issue->addCommand($command); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||