X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fworker.php;h=1b70a2095544a2d26b15160b230ddb9f733c4f21;hb=97df01c938cdbd7d0bb727061da4c3301490ff72;hp=a478159195432551a7a85fdee6ae219fa7f3258b;hpb=9cec293cccf730a02ef2bc5d57b87a6cba44ea5e;p=friendica.git diff --git a/bin/worker.php b/bin/worker.php index a478159195..1b70a20955 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -1,13 +1,28 @@ #!/usr/bin/env php . + * + * Starts the background processing */ use Dice\Dice; use Friendica\App; -use Friendica\Core\Config; use Friendica\Core\Update; use Friendica\Core\Worker; use Friendica\DI; @@ -46,7 +61,7 @@ if (!DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) { return; } -$a->setBaseURL(Config::get('system', 'url')); +DI::baseUrl()->saveByURL(DI::config()->get('system', 'url')); $spawn = array_key_exists('s', $options) || array_key_exists('spawn', $options);