Remove product literal strings in "pht()", part 12
[phabricator.git] / scripts / init / lib.php
blob4c544da9d0ea898da3113bb3d6add4f2e55ecc12
1 <?php
3 function init_phabricator_script(array $options) {
4 error_reporting(E_ALL | E_STRICT);
5 ini_set('display_errors', 1);
7 $include_path = ini_get('include_path');
8 ini_set(
9 'include_path',
10 $include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../../');
12 $ok = @include_once 'arcanist/support/init/init-script.php';
13 if (!$ok) {
14 echo
15 'FATAL ERROR: Unable to load the "Arcanist" library. '.
16 'Put "arcanist/" next to "phabricator/" on disk.';
17 echo "\n";
19 exit(1);
22 phutil_load_library('arcanist/src');
23 phutil_load_library(dirname(__FILE__).'/../../src/');
25 $config_optional = $options['config.optional'];
26 PhabricatorEnv::initializeScriptEnvironment($config_optional);