Update docs
This commit is contained in:
parent
1675542df4
commit
4b26d7d86a
|
@ -410,6 +410,7 @@ class Setup {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Append the correct ErrorDocument path for Apache hosts
|
* Append the correct ErrorDocument path for Apache hosts
|
||||||
|
* @return bool True when success, False otherwise
|
||||||
*/
|
*/
|
||||||
public static function updateHtaccess() {
|
public static function updateHtaccess() {
|
||||||
$config = \OC::$server->getConfig();
|
$config = \OC::$server->getConfig();
|
||||||
|
@ -418,7 +419,7 @@ class Setup {
|
||||||
if(\OC::$CLI) {
|
if(\OC::$CLI) {
|
||||||
$webRoot = $config->getSystemValue('overwrite.cli.url', '');
|
$webRoot = $config->getSystemValue('overwrite.cli.url', '');
|
||||||
if($webRoot === '') {
|
if($webRoot === '') {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
$webRoot = parse_url($webRoot, PHP_URL_PATH);
|
$webRoot = parse_url($webRoot, PHP_URL_PATH);
|
||||||
$webRoot = rtrim($webRoot, '/');
|
$webRoot = rtrim($webRoot, '/');
|
||||||
|
|
Loading…
Reference in New Issue