X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=e619ec89dd9bbb569c3ecb4db27c863c16fdcab2;hb=30e97b4cc1f9dc707a916f5aece2188608a1d32b;hp=6b8dc5d9e22aa139a63a4c2442e81b023c8a3def;hpb=1bdd0bcbb2b68537c108c7899593947e9e44c1de;p=friendica.git diff --git a/update.php b/update.php index 6b8dc5d9e2..e619ec89dd 100644 --- a/update.php +++ b/update.php @@ -9,6 +9,7 @@ use Friendica\Core\Update; use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\Model\Contact; +use Friendica\Model\GContact; use Friendica\Model\Item; use Friendica\Model\User; use Friendica\Util\DateTimeFormat; @@ -160,9 +161,9 @@ function update_1191() function update_1203() { $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)", - DBA::escape(Contact::ACCOUNT_TYPE_COMMUNITY), - DBA::escape(Contact::PAGE_COMMUNITY), - DBA::escape(Contact::PAGE_PRVGROUP) + DBA::escape(User::ACCOUNT_TYPE_COMMUNITY), + DBA::escape(User::PAGE_FLAGS_COMMUNITY), + DBA::escape(User::PAGE_FLAGS_PRVGROUP) ); } @@ -331,8 +332,8 @@ function update_1298() $fail++; } else { DBA::update('profile', [$translateKey => $key], ['id' => $data['id']]); - logger::log('Updated contact ' . $data['id'] . " to $translateKey " . $key . - ' (was: ' . $data[$translateKey] . ')'); + Logger::notice('Updated contact', ['action' => 'update', 'contact' => $data['id'], "$translateKey" => $key, + 'was' => $data[$translateKey]]); Worker::add(PRIORITY_LOW, 'ProfileUpdate', $data['id']); Contact::updateSelfFromUserID($data['id']); GContact::updateForUser($data['id']); @@ -341,7 +342,7 @@ function update_1298() } } - Logger::log($translateKey . " fix completed. Success: $success. Fail: $fail"); + Logger::notice($translateKey . " fix completed", ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]); } return Update::SUCCESS; }