mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:02:26 +00:00
remove $basepath from global namespace
This commit is contained in:
parent
22b1f871a8
commit
a0e77032cf
1 changed files with 8 additions and 8 deletions
|
@ -47,14 +47,13 @@ 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() {
|
||||
return dirname(__FILE__, 2);
|
||||
})();
|
||||
return (function(): array {
|
||||
/**
|
||||
* @var string $basepath The base path of the Friendica installation without trailing slash
|
||||
*/
|
||||
$basepath = dirname(__FILE__, 2);
|
||||
|
||||
return [
|
||||
return [
|
||||
'*' => [
|
||||
// marks all class result as shared for other creations, so there's just
|
||||
// one instance for the whole execution
|
||||
|
@ -331,4 +330,5 @@ return [
|
|||
$_GET['callback'] ?? '',
|
||||
],
|
||||
],
|
||||
];
|
||||
];
|
||||
})();
|
Loading…
Reference in a new issue