From 907e07a4c402bba065ed30972dedada185f02db0 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 07:39:43 +0000 Subject: [PATCH] Replace global $argv with $_SERVER --- bin/console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();