mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Refactor include_pathes
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
|
||||
require_once __DIR__ . '/../../bootstrap.php';
|
||||
|
||||
$new_include_path = realpath(__DIR__ . "/../../vendor/") . PATH_SEPARATOR . get_include_path();
|
||||
set_include_path($new_include_path);
|
||||
$include_path = realpath(__DIR__ . '/../../vendor/');
|
||||
if(strpos(get_include_path(), $include_path) === false)
|
||||
{
|
||||
$new_include_path = $include_path . PATH_SEPARATOR . get_include_path();
|
||||
set_include_path($new_include_path);
|
||||
}
|
||||
|
||||
require_once __DIR__ . "/../../vendor/Phlickr/Api.php";
|
||||
|
||||
|
Reference in New Issue
Block a user