Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F74196074
20150120.maniphestdefaultauthor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 26, 10:20
Size
674 B
Mime Type
text/x-php
Expires
Sun, Jul 28, 10:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19327308
Attached To
rPH Phabricator
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
"
;
Event Timeline
Log In to Comment