]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #12221 from MrPetovan/bug/warnings
[friendica.git] / update.php
index fab51993c16359026206253c9262e3bbb8486ea1..c7e2428af9d43f9b5a8b1e6b9465c68defd9d35d 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;
 }
 
@@ -299,7 +299,7 @@ function update_1349()
        }
 
        if (!DBA::e("UPDATE `item` INNER JOIN `item-activity` ON `item`.`uri-id` = `item-activity`.`uri-id`
-               SET `vid` = `item-activity`.`activity` + 1 WHERE `gravity` = ? AND (`vid` IS NULL OR `vid` = 0)", GRAVITY_ACTIVITY)) {
+               SET `vid` = `item-activity`.`activity` + 1 WHERE `gravity` = ? AND (`vid` IS NULL OR `vid` = 0)", Item::GRAVITY_ACTIVITY)) {
                return Update::FAILED;
        }