Adaptations to potentially run the setup from the CLI

SVN:trunk[2178]
This commit is contained in:
Denis Flaven
2012-09-12 13:28:49 +00:00
parent 949a4639e2
commit 4cfeae9ca0
2 changed files with 35 additions and 26 deletions

View File

@@ -708,10 +708,12 @@ class Config
$this->Verify();
}
// Application root url: set a default value, then normalize it
$sAppRootUrl = trim($this->Get('app_root_url'));
// Application root url: set a default value, then normalize it
/*
* Does not work in CLI/unattended mode
$sAppRootUrl = trim($this->Get('app_root_url'));
if (strlen($sAppRootUrl) == 0)
{
{
$sAppRootUrl = utils::GetDefaultUrlAppRoot();
}
if (substr($sAppRootUrl, -1, 1) != '/')
@@ -719,6 +721,7 @@ class Config
$sAppRootUrl .= '/';
}
$this->Set('app_root_url', $sAppRootUrl);
*/
}
protected function CheckFile($sPurpose, $sFileName)