Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / setting / PhabricatorOlderInlinesSetting.php
blobac1f57f45723ccd4c5014b96910f205f0cde7cba
1 <?php
3 final class PhabricatorOlderInlinesSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'diff-ghosts';
8 const VALUE_GHOST_INLINES_ENABLED = 'default';
9 const VALUE_GHOST_INLINES_DISABLED = 'disabled';
11 public function getSettingName() {
12 return pht('Show Older Inlines');
15 protected function getSettingOrder() {
16 return 200;
19 public function getSettingPanelKey() {
20 return PhabricatorDiffPreferencesSettingsPanel::PANELKEY;
23 protected function getControlInstructions() {
24 return pht(
25 'When a revision is updated, Phabricator attempts to bring inline '.
26 'comments on the older version forward to the new changes. You can '.
27 'disable this behavior if you prefer comments stay anchored in one '.
28 'place.');
31 public function getSettingDefaultValue() {
32 return self::VALUE_GHOST_INLINES_ENABLED;
35 protected function getSelectOptions() {
36 return array(
37 self::VALUE_GHOST_INLINES_ENABLED => pht('Enabled'),
38 self::VALUE_GHOST_INLINES_DISABLED => pht('Disabled'),