fixing gulliver script. Issue with path_installed
This commit is contained in:
4
gulliver/bin/gulliver
Normal file → Executable file
4
gulliver/bin/gulliver
Normal file → Executable file
@@ -14,7 +14,6 @@ if (isset($_SERVER['PWD'])) {
|
||||
}
|
||||
array_pop($docuroot);
|
||||
$pathhome = implode(PATH_SEP, $docuroot);
|
||||
|
||||
//try to find automatically the trunk directory where are placed the RBAC and Gulliver directories
|
||||
//in a normal installation you don't need to change it.
|
||||
array_pop($docuroot);
|
||||
@@ -28,6 +27,9 @@ define('PATH_TRUNK', $pathTrunk . PATH_SEP);
|
||||
define('PATH_OUTTRUNK', $pathOutTrunk . PATH_SEP);
|
||||
|
||||
//***************** include the main config file ******************************
|
||||
define('PATH_DATA', isset($_SERVER['PATH_DATA']) ? $_SERVER['PATH_DATA'] : PATH_TRUNK . 'shared' . PATH_SEP );
|
||||
define("FILE_PATHS_INSTALLED", PATH_DATA . "config" . PATH_SEP . "paths_installed.php");
|
||||
|
||||
$gulliverInstalled = PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php';
|
||||
if (file_exists($gulliverInstalled)) {
|
||||
require_once ( $gulliverInstalled );
|
||||
|
||||
Reference in New Issue
Block a user