X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=e619ec89dd9bbb569c3ecb4db27c863c16fdcab2;hb=9c5e0ae4155c69fc6d42e6c5678c2cb3a8a134da;hp=2663da21f0f097f38be4a82bbb4c3b41a2243e90;hpb=2f49c4a0586610c3a89b6342a90b916b95719d10;p=friendica.git diff --git a/update.php b/update.php index 2663da21f0..e619ec89dd 100644 --- a/update.php +++ b/update.php @@ -161,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) ); } @@ -332,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']); @@ -342,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; }