2016-09-06 22:20:31 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function init_phabricator_script(array $options) {
|
|
|
|
error_reporting(E_ALL | E_STRICT);
|
|
|
|
ini_set('display_errors', 1);
|
|
|
|
|
|
|
|
$include_path = ini_get('include_path');
|
|
|
|
ini_set(
|
|
|
|
'include_path',
|
|
|
|
$include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../../');
|
2020-02-12 22:21:45 +01:00
|
|
|
|
2020-02-14 17:19:54 +01:00
|
|
|
$ok = @include_once 'arcanist/support/init/init-script.php';
|
2020-02-12 22:21:45 +01:00
|
|
|
if (!$ok) {
|
|
|
|
echo
|
|
|
|
'FATAL ERROR: Unable to load the "Arcanist" library. '.
|
Change some instances of "phabricator" to "phorge"
Summary:
Just a small set of replacements in locations that seem innocuous (user-facing messages, documentation, etc.)
Ref T15006
Test Plan:
Nothing should change in terms of behavior. The places where these changes were made should now say "phorge".
Example tests:
- Manage a single User and click on Delete User and see the popup
- Run a test email and check the output
./bin/mail send-test --to username
- Visit /maniphest/, shift+click on at least 1 Task, click on Bulk Edit Selected,
Continue, see the popup
- See the mentioned documentation with your big eyes. Eyes do not explode \o/
Reviewers: O1 Blessed Committers, valerio.bozzolan
Reviewed By: O1 Blessed Committers, valerio.bozzolan
Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T15006
Differential Revision: https://we.phorge.it/D25473
2023-11-18 23:13:49 +01:00
|
|
|
'Put "arcanist/" next to "phorge/" on disk.';
|
2020-02-12 22:21:45 +01:00
|
|
|
echo "\n";
|
|
|
|
|
2016-09-06 22:20:31 +02:00
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
phutil_load_library('arcanist/src');
|
|
|
|
phutil_load_library(dirname(__FILE__).'/../../src/');
|
|
|
|
|
|
|
|
$config_optional = $options['config.optional'];
|
|
|
|
PhabricatorEnv::initializeScriptEnvironment($config_optional);
|
|
|
|
}
|