]> git.mxchange.org Git - friendica.git/commitdiff
Replace global $argv with $_SERVER
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 07:39:43 +0000 (07:39 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 07:39:43 +0000 (07:39 +0000)
bin/console.php

index ee681a0fbf23307dfe1313e2f9a34f202f0a287e..250131982f3297b771209ffc60e339a1006fdfce 100755 (executable)
@@ -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();