]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge remote-tracking branch 'upstream/develop' into notice
[friendica.git] / update.php
index fab51993c16359026206253c9262e3bbb8486ea1..9f348efe62b1dc04adef7ac4ab8d130f93e85d44 100644 (file)
@@ -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;
 }