mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-16 22:08:44 +02:00
Toolkit: deharcoded source directory
SVN:trunk[2234]
This commit is contained in:
@@ -792,9 +792,13 @@ class utils
|
||||
/**
|
||||
* Get target configuration file name (including full path)
|
||||
*/
|
||||
public static function GetConfigFilePath()
|
||||
public static function GetConfigFilePath($sEnvironment = null)
|
||||
{
|
||||
return APPCONF.self::GetCurrentEnvironment().'/'.ITOP_CONFIG_FILE;
|
||||
if (is_null($sEnvironment))
|
||||
{
|
||||
$sEnvironment = self::GetCurrentEnvironment();
|
||||
}
|
||||
return APPCONF.$sEnvironment.'/'.ITOP_CONFIG_FILE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -304,8 +304,13 @@ class RunTimeEnvironment
|
||||
return $aRet;
|
||||
}
|
||||
|
||||
public function CompileFrom($sSourceEnv, $sSourceDir = 'datamodel')
|
||||
public function CompileFrom($sSourceEnv, $sSourceDir = null)
|
||||
{
|
||||
if (is_null($sSourceDir))
|
||||
{
|
||||
$oSourceConfig = new Config(utils::GetConfigFilePath($sSourceEnv));
|
||||
$sSourceDir = $oSourceConfig->Get('source_dir');
|
||||
}
|
||||
$sSourceDirFull = APPROOT.$sSourceDir;
|
||||
// Do load the required modules
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user