mirror of
https://github.com/friendica/friendica
synced 2025-01-08 19:24:42 +00:00
refactor getopt() call
This commit is contained in:
parent
06f0c6c32c
commit
51b24cbac9
1 changed files with 1 additions and 3 deletions
|
@ -23,9 +23,7 @@ use Friendica\DI;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
// Get options
|
||||
$shortopts = 'sn';
|
||||
$longopts = ['spawn', 'no_cron'];
|
||||
$options = getopt($shortopts, $longopts);
|
||||
$options = getopt('sn', ['spawn', 'no_cron']);
|
||||
|
||||
// Ensure that worker.php is executed from the base path of the installation
|
||||
chdir(dirname(__DIR__));
|
||||
|
|
Loading…
Reference in a new issue