diff --git a/bin/daemon.php b/bin/daemon.php index dcb668acd6..ef9e452647 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -28,9 +28,7 @@ use Friendica\Util\DateTimeFormat; use Psr\Log\LoggerInterface; // Get options -$shortopts = 'f'; -$longopts = ['foreground']; -$options = getopt($shortopts, $longopts); +$options = getopt('f', ['foreground']); // Ensure that daemon.php is executed from the base path of the installation chdir(dirname(__DIR__));