From 704ddc2089143cb309fe4c83ca4e9f303936cb1d Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 22 Dec 2024 18:03:54 +0000 Subject: [PATCH] simplify basepath --- static/dependencies.config.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/dependencies.config.php b/static/dependencies.config.php index 5ca2f16726..035862f14d 100644 --- a/static/dependencies.config.php +++ b/static/dependencies.config.php @@ -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 [