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
0cd2b8e2c0
commit
341f5b46f6
1 changed files with 1 additions and 3 deletions
|
@ -28,9 +28,7 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
// Get options
|
// Get options
|
||||||
$shortopts = 'f';
|
$options = getopt('f', ['foreground']);
|
||||||
$longopts = ['foreground'];
|
|
||||||
$options = getopt($shortopts, $longopts);
|
|
||||||
|
|
||||||
// Ensure that daemon.php is executed from the base path of the installation
|
// Ensure that daemon.php is executed from the base path of the installation
|
||||||
chdir(dirname(__DIR__));
|
chdir(dirname(__DIR__));
|
||||||
|
|
Loading…
Reference in a new issue