mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02: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 Friendica\Util;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string $basepath The base path of the Friendica installation without trailing slash
|
||||||
|
*/
|
||||||
$basepath = (function() {
|
$basepath = (function() {
|
||||||
$path = dirname(__FILE__, 2);
|
return dirname(__FILE__, 2);
|
||||||
|
|
||||||
return ($realpath = realpath($path)) ? $realpath : $path;
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue