Improve return value consistency in Util\BasePath::getPath
This commit is contained in:
parent
1dc97e30e0
commit
b66787f0de
|
@ -43,7 +43,7 @@ class BasePath
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the base filesystem path of the App
|
* Returns the base Friendica filesystem path without trailing slash
|
||||||
*
|
*
|
||||||
* It first checks for the internal variable, then for DOCUMENT_ROOT and
|
* It first checks for the internal variable, then for DOCUMENT_ROOT and
|
||||||
* finally for PWD
|
* finally for PWD
|
||||||
|
@ -71,7 +71,7 @@ class BasePath
|
||||||
throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir));
|
throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $baseDir;
|
return rtrim($baseDir, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user