mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Refactor include_pathes
This commit is contained in:
@@ -3,9 +3,12 @@
|
||||
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||
|
||||
$new_include_path = realpath(__DIR__ . '/../../../../vendor/gdata/') . PATH_SEPARATOR . get_include_path();
|
||||
set_include_path($new_include_path);
|
||||
|
||||
$include_path = realpath(__DIR__ . '/../../../../vendor/gdata/');
|
||||
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('Zend/Loader.php');
|
||||
Zend_Loader::loadClass('Zend_Gdata_YouTube');
|
||||
|
@@ -3,9 +3,12 @@
|
||||
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||
|
||||
$new_include_path = realpath(__DIR__ . '/../../../../vendor/gdata/') . PATH_SEPARATOR . get_include_path();
|
||||
set_include_path($new_include_path);
|
||||
|
||||
$include_path = realpath(__DIR__ . '/../../../../vendor/gdata/');
|
||||
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('Zend/Loader.php');
|
||||
Zend_Loader::loadClass('Zend_Gdata_YouTube');
|
||||
|
@@ -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