@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Remove "metamta.*.subject-prefix" options

Summary:
In ~2012, the first of these options was added because someone who hates dogs and works at Asana also hated `[Differential]` in the subject line. The use case there was actually //removing// the text, not changing it, but I made the prefix editable since it seemed like slightly less of a one-off.

These options are among the dumbest and most useless config options we have and very rarely used, see T11760. A very small number of instances have configured one of these options.

Newer applications stopped providing these options and no one has complained.

You can get the same effect with `translation.override`. Although I'm not sure we'll keep that around forever, it's a reasonable replacement today. I'll call out an example in the changelog to help installs that want to preserve this option.

If we did want to provide this, it should just be in {nav Applications > Settings} for each application, but I think it's wildly-low-value and "hack via translations" or "local patch" are entirely reasonable if you really want to change these strings.

Test Plan: Grepped for `subject-prefix`.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D19993

+34 -239
-12
src/__phutil_library_map__.php
··· 341 341 'ConduitWildParameterType' => 'applications/conduit/parametertype/ConduitWildParameterType.php', 342 342 'ConpherenceColumnViewController' => 'applications/conpherence/controller/ConpherenceColumnViewController.php', 343 343 'ConpherenceConduitAPIMethod' => 'applications/conpherence/conduit/ConpherenceConduitAPIMethod.php', 344 - 'ConpherenceConfigOptions' => 'applications/conpherence/config/ConpherenceConfigOptions.php', 345 344 'ConpherenceConstants' => 'applications/conpherence/constants/ConpherenceConstants.php', 346 345 'ConpherenceController' => 'applications/conpherence/controller/ConpherenceController.php', 347 346 'ConpherenceCreateThreadConduitAPIMethod' => 'applications/conpherence/conduit/ConpherenceCreateThreadConduitAPIMethod.php', ··· 3333 3332 'PhabricatorLDAPAuthProvider' => 'applications/auth/provider/PhabricatorLDAPAuthProvider.php', 3334 3333 'PhabricatorLabelProfileMenuItem' => 'applications/search/menuitem/PhabricatorLabelProfileMenuItem.php', 3335 3334 'PhabricatorLegalpadApplication' => 'applications/legalpad/application/PhabricatorLegalpadApplication.php', 3336 - 'PhabricatorLegalpadConfigOptions' => 'applications/legalpad/config/PhabricatorLegalpadConfigOptions.php', 3337 3335 'PhabricatorLegalpadDocumentPHIDType' => 'applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php', 3338 3336 'PhabricatorLegalpadSignaturePolicyRule' => 'applications/legalpad/policyrule/PhabricatorLegalpadSignaturePolicyRule.php', 3339 3337 'PhabricatorLibraryTestCase' => '__tests__/PhabricatorLibraryTestCase.php', ··· 3362 3360 'PhabricatorMacroAudioBehaviorTransaction' => 'applications/macro/xaction/PhabricatorMacroAudioBehaviorTransaction.php', 3363 3361 'PhabricatorMacroAudioController' => 'applications/macro/controller/PhabricatorMacroAudioController.php', 3364 3362 'PhabricatorMacroAudioTransaction' => 'applications/macro/xaction/PhabricatorMacroAudioTransaction.php', 3365 - 'PhabricatorMacroConfigOptions' => 'applications/macro/config/PhabricatorMacroConfigOptions.php', 3366 3363 'PhabricatorMacroController' => 'applications/macro/controller/PhabricatorMacroController.php', 3367 3364 'PhabricatorMacroDatasource' => 'applications/macro/typeahead/PhabricatorMacroDatasource.php', 3368 3365 'PhabricatorMacroDisableController' => 'applications/macro/controller/PhabricatorMacroDisableController.php', ··· 3766 3763 'PhabricatorPaste' => 'applications/paste/storage/PhabricatorPaste.php', 3767 3764 'PhabricatorPasteApplication' => 'applications/paste/application/PhabricatorPasteApplication.php', 3768 3765 'PhabricatorPasteArchiveController' => 'applications/paste/controller/PhabricatorPasteArchiveController.php', 3769 - 'PhabricatorPasteConfigOptions' => 'applications/paste/config/PhabricatorPasteConfigOptions.php', 3770 3766 'PhabricatorPasteContentSearchEngineAttachment' => 'applications/paste/engineextension/PhabricatorPasteContentSearchEngineAttachment.php', 3771 3767 'PhabricatorPasteContentTransaction' => 'applications/paste/xaction/PhabricatorPasteContentTransaction.php', 3772 3768 'PhabricatorPasteController' => 'applications/paste/controller/PhabricatorPasteController.php', ··· 3851 3847 'PhabricatorPhamePostPHIDType' => 'applications/phame/phid/PhabricatorPhamePostPHIDType.php', 3852 3848 'PhabricatorPhluxApplication' => 'applications/phlux/application/PhabricatorPhluxApplication.php', 3853 3849 'PhabricatorPholioApplication' => 'applications/pholio/application/PhabricatorPholioApplication.php', 3854 - 'PhabricatorPholioConfigOptions' => 'applications/pholio/config/PhabricatorPholioConfigOptions.php', 3855 3850 'PhabricatorPholioMockTestDataGenerator' => 'applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php', 3856 3851 'PhabricatorPhoneNumber' => 'applications/metamta/message/PhabricatorPhoneNumber.php', 3857 3852 'PhabricatorPhortuneApplication' => 'applications/phortune/application/PhabricatorPhortuneApplication.php', ··· 3862 3857 'PhabricatorPhragmentApplication' => 'applications/phragment/application/PhabricatorPhragmentApplication.php', 3863 3858 'PhabricatorPhrequentApplication' => 'applications/phrequent/application/PhabricatorPhrequentApplication.php', 3864 3859 'PhabricatorPhrictionApplication' => 'applications/phriction/application/PhabricatorPhrictionApplication.php', 3865 - 'PhabricatorPhrictionConfigOptions' => 'applications/phriction/config/PhabricatorPhrictionConfigOptions.php', 3866 3860 'PhabricatorPhurlApplication' => 'applications/phurl/application/PhabricatorPhurlApplication.php', 3867 3861 'PhabricatorPhurlConfigOptions' => 'applications/config/option/PhabricatorPhurlConfigOptions.php', 3868 3862 'PhabricatorPhurlController' => 'applications/phurl/controller/PhabricatorPhurlController.php', ··· 5743 5737 'ConduitWildParameterType' => 'ConduitParameterType', 5744 5738 'ConpherenceColumnViewController' => 'ConpherenceController', 5745 5739 'ConpherenceConduitAPIMethod' => 'ConduitAPIMethod', 5746 - 'ConpherenceConfigOptions' => 'PhabricatorApplicationConfigOptions', 5747 5740 'ConpherenceConstants' => 'Phobject', 5748 5741 'ConpherenceController' => 'PhabricatorController', 5749 5742 'ConpherenceCreateThreadConduitAPIMethod' => 'ConpherenceConduitAPIMethod', ··· 9172 9165 'PhabricatorLDAPAuthProvider' => 'PhabricatorAuthProvider', 9173 9166 'PhabricatorLabelProfileMenuItem' => 'PhabricatorProfileMenuItem', 9174 9167 'PhabricatorLegalpadApplication' => 'PhabricatorApplication', 9175 - 'PhabricatorLegalpadConfigOptions' => 'PhabricatorApplicationConfigOptions', 9176 9168 'PhabricatorLegalpadDocumentPHIDType' => 'PhabricatorPHIDType', 9177 9169 'PhabricatorLegalpadSignaturePolicyRule' => 'PhabricatorPolicyRule', 9178 9170 'PhabricatorLibraryTestCase' => 'PhutilLibraryTestCase', ··· 9201 9193 'PhabricatorMacroAudioBehaviorTransaction' => 'PhabricatorMacroTransactionType', 9202 9194 'PhabricatorMacroAudioController' => 'PhabricatorMacroController', 9203 9195 'PhabricatorMacroAudioTransaction' => 'PhabricatorMacroTransactionType', 9204 - 'PhabricatorMacroConfigOptions' => 'PhabricatorApplicationConfigOptions', 9205 9196 'PhabricatorMacroController' => 'PhabricatorController', 9206 9197 'PhabricatorMacroDatasource' => 'PhabricatorTypeaheadDatasource', 9207 9198 'PhabricatorMacroDisableController' => 'PhabricatorMacroController', ··· 9688 9679 ), 9689 9680 'PhabricatorPasteApplication' => 'PhabricatorApplication', 9690 9681 'PhabricatorPasteArchiveController' => 'PhabricatorPasteController', 9691 - 'PhabricatorPasteConfigOptions' => 'PhabricatorApplicationConfigOptions', 9692 9682 'PhabricatorPasteContentSearchEngineAttachment' => 'PhabricatorSearchEngineAttachment', 9693 9683 'PhabricatorPasteContentTransaction' => 'PhabricatorPasteTransactionType', 9694 9684 'PhabricatorPasteController' => 'PhabricatorController', ··· 9773 9763 'PhabricatorPhamePostPHIDType' => 'PhabricatorPHIDType', 9774 9764 'PhabricatorPhluxApplication' => 'PhabricatorApplication', 9775 9765 'PhabricatorPholioApplication' => 'PhabricatorApplication', 9776 - 'PhabricatorPholioConfigOptions' => 'PhabricatorApplicationConfigOptions', 9777 9766 'PhabricatorPholioMockTestDataGenerator' => 'PhabricatorTestDataGenerator', 9778 9767 'PhabricatorPhoneNumber' => 'Phobject', 9779 9768 'PhabricatorPhortuneApplication' => 'PhabricatorApplication', ··· 9784 9773 'PhabricatorPhragmentApplication' => 'PhabricatorApplication', 9785 9774 'PhabricatorPhrequentApplication' => 'PhabricatorApplication', 9786 9775 'PhabricatorPhrictionApplication' => 'PhabricatorApplication', 9787 - 'PhabricatorPhrictionConfigOptions' => 'PhabricatorApplicationConfigOptions', 9788 9776 'PhabricatorPhurlApplication' => 'PhabricatorApplication', 9789 9777 'PhabricatorPhurlConfigOptions' => 'PhabricatorApplicationConfigOptions', 9790 9778 'PhabricatorPhurlController' => 'PhabricatorController',
+1 -1
src/applications/audit/editor/PhabricatorAuditEditor.php
··· 437 437 } 438 438 439 439 protected function getMailSubjectPrefix() { 440 - return PhabricatorEnv::getEnvConfig('metamta.diffusion.subject-prefix'); 440 + return pht('[Diffusion]'); 441 441 } 442 442 443 443 protected function getMailThreadID(PhabricatorLiskDAO $object) {
+18
src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
··· 203 203 $mailers_reason = pht( 204 204 'Inbound and outbound mail is now configured with "cluster.mailers".'); 205 205 206 + $prefix_reason = pht( 207 + 'Per-application mail subject prefix customization is no longer '. 208 + 'directly supported. Prefixes and other strings may be customized with '. 209 + '"translation.override".'); 210 + 206 211 $ancient_config += array( 207 212 'phid.external-loaders' => 208 213 pht( ··· 398 403 'phabricator.allow-email-users' => pht( 399 404 'Public email is now accepted if the associated address has a '. 400 405 'default author, and rejected otherwise.'), 406 + 407 + 'metamta.conpherence.subject-prefix' => $prefix_reason, 408 + 'metamta.differential.subject-prefix' => $prefix_reason, 409 + 'metamta.diffusion.subject-prefix' => $prefix_reason, 410 + 'metamta.files.subject-prefix' => $prefix_reason, 411 + 'metamta.legalpad.subject-prefix' => $prefix_reason, 412 + 'metamta.macro.subject-prefix' => $prefix_reason, 413 + 'metamta.maniphest.subject-prefix' => $prefix_reason, 414 + 'metamta.package.subject-prefix' => $prefix_reason, 415 + 'metamta.paste.subject-prefix' => $prefix_reason, 416 + 'metamta.pholio.subject-prefix' => $prefix_reason, 417 + 'metamta.phriction.subject-prefix' => $prefix_reason, 418 + 401 419 ); 402 420 403 421 return $ancient_config;
-32
src/applications/conpherence/config/ConpherenceConfigOptions.php
··· 1 - <?php 2 - 3 - final class ConpherenceConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Conpherence'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Configure Conpherence messaging.'); 12 - } 13 - 14 - public function getIcon() { 15 - return 'fa-comments'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption( 25 - 'metamta.conpherence.subject-prefix', 26 - 'string', 27 - '[Conpherence]') 28 - ->setDescription(pht('Subject prefix for Conpherence mail.')), 29 - ); 30 - } 31 - 32 - }
+1 -1
src/applications/conpherence/editor/ConpherenceEditor.php
··· 239 239 } 240 240 241 241 protected function getMailSubjectPrefix() { 242 - return PhabricatorEnv::getEnvConfig('metamta.conpherence.subject-prefix'); 242 + return pht('[Conpherence]'); 243 243 } 244 244 245 245 protected function supportsSearch() {
-5
src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
··· 229 229 'This sort of workflow is very unusual. Very few installs should '. 230 230 'need to change this option.')), 231 231 $this->newOption( 232 - 'metamta.differential.subject-prefix', 233 - 'string', 234 - '[Differential]') 235 - ->setDescription(pht('Subject prefix for Differential mail.')), 236 - $this->newOption( 237 232 'metamta.differential.attach-patches', 238 233 'bool', 239 234 false)
+1 -2
src/applications/differential/doorkeeper/DifferentialDoorkeeperRevisionFeedStoryPublisher.php
··· 81 81 } 82 82 83 83 private function getTitlePrefix(DifferentialRevision $revision) { 84 - $prefix_key = 'metamta.differential.subject-prefix'; 85 - return PhabricatorEnv::getEnvConfig($prefix_key); 84 + return pht('[Differential]'); 86 85 } 87 86 88 87 }
+1 -1
src/applications/differential/editor/DifferentialTransactionEditor.php
··· 563 563 } 564 564 565 565 protected function getMailSubjectPrefix() { 566 - return PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix'); 566 + return pht('[Differential]'); 567 567 } 568 568 569 569 protected function getMailThreadID(PhabricatorLiskDAO $object) {
+1 -2
src/applications/differential/mail/DifferentialCreateMailReceiver.php
··· 69 69 } 70 70 } 71 71 72 - $subject_prefix = 73 - PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix'); 72 + $subject_prefix = pht('[Differential]'); 74 73 if (count($diffs)) { 75 74 $subject = pht( 76 75 'You successfully created %d diff(s).',
-5
src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
··· 38 38 39 39 return array( 40 40 $this->newOption( 41 - 'metamta.diffusion.subject-prefix', 42 - 'string', 43 - '[Diffusion]') 44 - ->setDescription(pht('Subject prefix for Diffusion mail.')), 45 - $this->newOption( 46 41 'metamta.diffusion.attach-patches', 47 42 'bool', 48 43 false)
+1 -2
src/applications/diffusion/doorkeeper/DiffusionDoorkeeperCommitFeedStoryPublisher.php
··· 172 172 } 173 173 174 174 private function getTitlePrefix(PhabricatorRepositoryCommit $commit) { 175 - $prefix_key = 'metamta.diffusion.subject-prefix'; 176 - return PhabricatorEnv::getEnvConfig($prefix_key); 175 + return pht('[Diffusion]'); 177 176 } 178 177 179 178 }
-5
src/applications/files/config/PhabricatorFilesConfigOptions.php
··· 197 197 "Set this to a valid Amazon S3 bucket to store files there. You ". 198 198 "must also configure S3 access keys in the 'Amazon Web Services' ". 199 199 "group.")), 200 - $this->newOption( 201 - 'metamta.files.subject-prefix', 202 - 'string', 203 - '[File]') 204 - ->setDescription(pht('Subject prefix for Files email.')), 205 200 $this->newOption('files.enable-imagemagick', 'bool', false) 206 201 ->setBoolOptions( 207 202 array(
+1 -1
src/applications/files/editor/PhabricatorFileEditor.php
··· 27 27 } 28 28 29 29 protected function getMailSubjectPrefix() { 30 - return PhabricatorEnv::getEnvConfig('metamta.files.subject-prefix'); 30 + return pht('[File]'); 31 31 } 32 32 33 33 protected function getMailTo(PhabricatorLiskDAO $object) {
+1 -2
src/applications/files/mail/FileCreateMailReceiver.php
··· 33 33 } else { 34 34 $subject = pht('You successfully uploaded a file.'); 35 35 } 36 - $subject_prefix = 37 - PhabricatorEnv::getEnvConfig('metamta.files.subject-prefix'); 36 + $subject_prefix = pht('[File]'); 38 37 39 38 $file_uris = array(); 40 39 foreach ($attachment_phids as $phid) {
-32
src/applications/legalpad/config/PhabricatorLegalpadConfigOptions.php
··· 1 - <?php 2 - 3 - final class PhabricatorLegalpadConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Legalpad'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Configure Legalpad.'); 12 - } 13 - 14 - public function getIcon() { 15 - return 'fa-gavel'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption( 25 - 'metamta.legalpad.subject-prefix', 26 - 'string', 27 - '[Legalpad]') 28 - ->setDescription(pht('Subject prefix for Legalpad email.')), 29 - ); 30 - } 31 - 32 - }
+1 -1
src/applications/legalpad/editor/LegalpadDocumentEditor.php
··· 166 166 } 167 167 168 168 protected function getMailSubjectPrefix() { 169 - return PhabricatorEnv::getEnvConfig('metamta.legalpad.subject-prefix'); 169 + return pht('[Legalpad]'); 170 170 } 171 171 172 172
-29
src/applications/macro/config/PhabricatorMacroConfigOptions.php
··· 1 - <?php 2 - 3 - final class PhabricatorMacroConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Macro'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Configure Macro.'); 12 - } 13 - 14 - public function getIcon() { 15 - return 'fa-file-image-o'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption('metamta.macro.subject-prefix', 'string', '[Macro]') 25 - ->setDescription(pht('Subject prefix for Macro email.')), 26 - ); 27 - } 28 - 29 - }
+1 -1
src/applications/macro/editor/PhabricatorMacroEditor.php
··· 57 57 } 58 58 59 59 protected function getMailSubjectPrefix() { 60 - return PhabricatorEnv::getEnvConfig('metamta.macro.subject-prefix'); 60 + return pht('[Macro]'); 61 61 } 62 62 63 63 protected function shouldPublishFeedStory(
-5
src/applications/maniphest/config/PhabricatorManiphestConfigOptions.php
··· 459 459 '%s configuration option. The default value (`90`) '. 460 460 'corresponds to the default "Needs Triage" priority.', 461 461 'maniphest.priorities')), 462 - $this->newOption( 463 - 'metamta.maniphest.subject-prefix', 464 - 'string', 465 - '[Maniphest]') 466 - ->setDescription(pht('Subject prefix for Maniphest mail.')), 467 462 $this->newOption('maniphest.points', $points_type, array()) 468 463 ->setSummary(pht('Configure point values for tasks.')) 469 464 ->setDescription($points_description)
+1 -1
src/applications/maniphest/editor/ManiphestTransactionEditor.php
··· 155 155 } 156 156 157 157 protected function getMailSubjectPrefix() { 158 - return PhabricatorEnv::getEnvConfig('metamta.maniphest.subject-prefix'); 158 + return pht('[Maniphest]'); 159 159 } 160 160 161 161 protected function getMailThreadID(PhabricatorLiskDAO $object) {
-2
src/applications/owners/config/PhabricatorOwnersConfigOptions.php
··· 36 36 $fields_example = id(new PhutilJSON())->encodeFormatted($fields_example); 37 37 38 38 return array( 39 - $this->newOption('metamta.package.subject-prefix', 'string', '[Package]') 40 - ->setDescription(pht('Subject prefix for Owners email.')), 41 39 $this->newOption('owners.fields', $custom_field_type, $default_fields) 42 40 ->setCustomData($field_base_class) 43 41 ->setDescription(pht('Select and reorder package fields.')),
+1 -1
src/applications/owners/editor/PhabricatorOwnersPackageTransactionEditor.php
··· 27 27 } 28 28 29 29 protected function getMailSubjectPrefix() { 30 - return PhabricatorEnv::getEnvConfig('metamta.package.subject-prefix'); 30 + return pht('[Package]'); 31 31 } 32 32 33 33 protected function getMailTo(PhabricatorLiskDAO $object) {
-32
src/applications/paste/config/PhabricatorPasteConfigOptions.php
··· 1 - <?php 2 - 3 - final class PhabricatorPasteConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Paste'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Configure Paste.'); 12 - } 13 - 14 - public function getIcon() { 15 - return 'fa-paste'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption( 25 - 'metamta.paste.subject-prefix', 26 - 'string', 27 - '[Paste]') 28 - ->setDescription(pht('Subject prefix for Paste email.')), 29 - ); 30 - } 31 - 32 - }
+1 -1
src/applications/paste/editor/PhabricatorPasteEditor.php
··· 41 41 } 42 42 43 43 protected function getMailSubjectPrefix() { 44 - return PhabricatorEnv::getEnvConfig('metamta.paste.subject-prefix'); 44 + return pht('[Paste]'); 45 45 } 46 46 47 47 protected function getMailTo(PhabricatorLiskDAO $object) {
+1 -2
src/applications/paste/mail/PasteCreateMailReceiver.php
··· 44 44 return; 45 45 } 46 46 47 - $subject_prefix = 48 - PhabricatorEnv::getEnvConfig('metamta.paste.subject-prefix'); 47 + $subject_prefix = pht('[Paste]'); 49 48 $subject = pht('You successfully created a paste.'); 50 49 $paste_uri = PhabricatorEnv::getProductionURI($paste->getURI()); 51 50 $body = new PhabricatorMetaMTAMailBody();
-29
src/applications/pholio/config/PhabricatorPholioConfigOptions.php
··· 1 - <?php 2 - 3 - final class PhabricatorPholioConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Pholio'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Configure Pholio.'); 12 - } 13 - 14 - public function getIcon() { 15 - return 'fa-camera-retro'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption('metamta.pholio.subject-prefix', 'string', '[Pholio]') 25 - ->setDescription(pht('Subject prefix for Pholio email.')), 26 - ); 27 - } 28 - 29 - }
+1 -1
src/applications/pholio/editor/PholioMockEditor.php
··· 139 139 } 140 140 141 141 protected function getMailSubjectPrefix() { 142 - return PhabricatorEnv::getEnvConfig('metamta.pholio.subject-prefix'); 142 + return pht('[Pholio]'); 143 143 } 144 144 145 145 public function getMailTagsMap() {
-30
src/applications/phriction/config/PhabricatorPhrictionConfigOptions.php
··· 1 - <?php 2 - 3 - final class PhabricatorPhrictionConfigOptions 4 - extends PhabricatorApplicationConfigOptions { 5 - 6 - public function getName() { 7 - return pht('Phriction'); 8 - } 9 - 10 - public function getDescription() { 11 - return pht('Options related to Phriction (wiki).'); 12 - } 13 - 14 - public function getIcon() { 15 - return 'fa-book'; 16 - } 17 - 18 - public function getGroup() { 19 - return 'apps'; 20 - } 21 - 22 - public function getOptions() { 23 - return array( 24 - $this->newOption( 25 - 'metamta.phriction.subject-prefix', 'string', '[Phriction]') 26 - ->setDescription(pht('Subject prefix for Phriction email.')), 27 - ); 28 - } 29 - 30 - }
+1 -1
src/applications/repository/worker/PhabricatorRepositoryPushMailWorker.php
··· 99 99 $body->addTextSection(pht('REFERENCES'), implode("\n", $ref_lines)); 100 100 } 101 101 102 - $prefix = PhabricatorEnv::getEnvConfig('metamta.diffusion.subject-prefix'); 102 + $prefix = pht('[Diffusion]'); 103 103 104 104 $parts = array(); 105 105 if ($commit_count) {