mirror of
https://github.com/friendica/friendica
synced 2025-01-18 13:44:28 +00:00
simplify basepath
This commit is contained in:
parent
9987c90faf
commit
704ddc2089
1 changed files with 4 additions and 3 deletions
|
@ -47,10 +47,11 @@ use Friendica\Network;
|
|||
use Friendica\Util;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
* @var string $basepath The base path of the Friendica installation without trailing slash
|
||||
*/
|
||||
$basepath = (function() {
|
||||
$path = dirname(__FILE__, 2);
|
||||
|
||||
return ($realpath = realpath($path)) ? $realpath : $path;
|
||||
return dirname(__FILE__, 2);
|
||||
})();
|
||||
|
||||
return [
|
||||
|
|
Loading…
Reference in a new issue