mirror of
https://github.com/friendica/friendica
synced 2025-01-23 06:19:47 +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 Friendica\Util;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
return (function(): array {
|
||||||
* @var string $basepath The base path of the Friendica installation without trailing slash
|
/**
|
||||||
*/
|
* @var string $basepath The base path of the Friendica installation without trailing slash
|
||||||
$basepath = (function() {
|
*/
|
||||||
return dirname(__FILE__, 2);
|
$basepath = dirname(__FILE__, 2);
|
||||||
})();
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'*' => [
|
'*' => [
|
||||||
// marks all class result as shared for other creations, so there's just
|
// marks all class result as shared for other creations, so there's just
|
||||||
// one instance for the whole execution
|
// one instance for the whole execution
|
||||||
|
@ -331,4 +330,5 @@ return [
|
||||||
$_GET['callback'] ?? '',
|
$_GET['callback'] ?? '',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
})();
|
Loading…
Add table
Reference in a new issue