From: Art4 Date: Thu, 26 Dec 2024 07:39:43 +0000 (+0000) Subject: Replace global $argv with $_SERVER X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=907e07a4c402bba065ed30972dedada185f02db0;p=friendica.git Replace global $argv with $_SERVER --- diff --git a/bin/console.php b/bin/console.php index ee681a0fbf..250131982f 100755 --- a/bin/console.php +++ b/bin/console.php @@ -31,4 +31,4 @@ $dice = $dice->addRule(LoggerInterface::class, ['constructParams' => [LogChannel DI::init($dice); \Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class)); -(new Friendica\Core\Console($dice, $argv))->execute(); +(new Friendica\Core\Console($dice, $_SERVER['argv'] ?? []))->execute();