mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 02:42:40 +01:00
36e2d02d6e
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
22 lines
674 B
PHP
22 lines
674 B
PHP
<?php
|
|
|
|
$key = 'metamta.maniphest.default-public-author';
|
|
echo pht("Migrating `%s` to new application email infrastructure...\n", $key);
|
|
$value = PhabricatorEnv::getEnvConfigIfExists($key);
|
|
$maniphest = new PhabricatorManiphestApplication();
|
|
$config_key =
|
|
PhabricatorMetaMTAApplicationEmail::CONFIG_DEFAULT_AUTHOR;
|
|
|
|
if ($value) {
|
|
$app_emails = id(new PhabricatorMetaMTAApplicationEmailQuery())
|
|
->setViewer(PhabricatorUser::getOmnipotentUser())
|
|
->withApplicationPHIDs(array($maniphest->getPHID()))
|
|
->execute();
|
|
|
|
foreach ($app_emails as $app_email) {
|
|
$app_email->setConfigValue($config_key, $value);
|
|
$app_email->save();
|
|
}
|
|
}
|
|
|
|
echo pht('Done.')."\n";
|