Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F972846
20150120.maniphestdefaultauthor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
674 B
Referenced Files
None
Subscribers
None
20150120.maniphestdefaultauthor.php
View Options
<?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
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 6:27 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224400
Default Alt Text
20150120.maniphestdefaultauthor.php (674 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment