Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110861154
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
Mon, Apr 28, 11:53
Size
650 B
Mime Type
text/x-php
Expires
Wed, Apr 30, 11:53 (2 d)
Engine
blob
Format
Raw Data
Handle
25848903
Attached To
rPH Phabricator
20150120.maniphestdefaultauthor.php
View Options
<?php
$key
=
'metamta.maniphest.default-public-author'
;
echo
"Migrating `$key` to new application email infrastructure...
\n
"
;
$value
=
PhabricatorEnv
::
getEnvConfigIfExists
(
$key
);
$maniphest
=
new
PhabricatorManiphestApplication
();
$config_key
=
PhabricatorMetaMTAApplicationEmail
::
CONFIG_DEFAULT_AUTHOR
;
if
(
$value
)
{
$app_emails
=
id
(
new
PhabricatorMetaMTAApplicationEmailQuery
())
->
setViewer
(
PhabricatorUser
::
getOmnipotentUser
())
->
withApplicationPHIDs
(
$maniphest
->
getPHID
())
->
execute
();
foreach
(
$app_emails
as
$app_email
)
{
$app_email
->
setConfigValue
(
$config_key
,
$value
);
$app_email
->
save
();
}
}
echo
"Done.
\n
"
;
Event Timeline
Log In to Comment