mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +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
24 lines
560 B
PHP
24 lines
560 B
PHP
<?php
|
|
|
|
$old_key = 'phabricator.show-beta-applications';
|
|
$new_key = 'phabricator.show-prototypes';
|
|
|
|
echo pht("Migrating '%s' to '%s'...", $old_key, $new_key)."\n";
|
|
|
|
if (PhabricatorEnv::getEnvConfig($new_key)) {
|
|
echo pht('Skipping migration, new data is already set.')."\n";
|
|
return;
|
|
}
|
|
|
|
$old = PhabricatorEnv::getEnvConfigIfExists($old_key);
|
|
if (!$old) {
|
|
echo pht('Skipping migration, old data does not exist.')."\n";
|
|
return;
|
|
}
|
|
|
|
PhabricatorConfigEntry::loadConfigEntry($new_key)
|
|
->setIsDeleted(0)
|
|
->setValue($old)
|
|
->save();
|
|
|
|
echo pht('Done.')."\n";
|