X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=c7e2428af9d43f9b5a8b1e6b9465c68defd9d35d;hb=26e0469de77aeae2311e8b50b5e64b58a388ca01;hp=e66887a378913f25a731ca2338181579957328fc;hpb=da66730e4f142c3557cdf7343bc420f7b80c883e;p=friendica.git diff --git a/update.php b/update.php index e66887a378..c7e2428af9 100644 --- a/update.php +++ b/update.php @@ -131,7 +131,7 @@ function update_1309() continue; } - $deliver_options = ['priority' => PRIORITY_MEDIUM, 'dont_fork' => true]; + $deliver_options = ['priority' => Worker::PRIORITY_MEDIUM, 'dont_fork' => true]; Worker::add($deliver_options, 'Delivery', Delivery::POST, $item['id'], $entry['cid']); Logger::info('Added delivery worker', ['item' => $item['id'], 'contact' => $entry['cid']]); DBA::delete('queue', ['id' => $entry['id']]); @@ -152,7 +152,7 @@ function update_1318() DBA::update('profile', ['marital' => 'In a relation'], ['marital' => 'Unavailable']); DBA::update('profile', ['marital' => 'Single'], ['marital' => 'Available']); - Worker::add(PRIORITY_LOW, 'ProfileUpdate'); + Worker::add(Worker::PRIORITY_LOW, 'ProfileUpdate'); return Update::SUCCESS; }