mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
14 lines
256 B
PHP
14 lines
256 B
PHP
<?php
|
|
|
|
use Gist\Application;
|
|
|
|
$app = Application::getInstance();
|
|
|
|
$app['root_path'] = __DIR__ . '/../..';
|
|
|
|
if (php_sapi_name() !== 'cli') {
|
|
chdir($app['root_path']);
|
|
} else {
|
|
set_include_path(get_include_path().PATH_SEPARATOR.$app['root_path']);
|
|
}
|