From: Michael Date: Thu, 28 Jun 2018 03:31:10 +0000 (+0000) Subject: Standards and some more replace item calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b705a91ccdb574aeb99a2a4edb55fd549a14d3e8;p=friendica.git Standards and some more replace item calls --- diff --git a/mod/photos.php b/mod/photos.php index c0e1c7477a..34eea0c642 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -640,7 +640,7 @@ function photos_post(App $a) $arr['deny_gid'] = $p[0]['deny_gid']; $arr['visible'] = 1; $arr['verb'] = ACTIVITY_TAG; - $arr["gravity"] = GRAVITY_PARENT; + $arr['gravity'] = GRAVITY_PARENT; $arr['object-type'] = ACTIVITY_OBJ_PERSON; $arr['target-type'] = ACTIVITY_OBJ_IMAGE; $arr['tag'] = $tagged[4]; diff --git a/src/Model/Term.php b/src/Model/Term.php index b211e7d2eb..8587142092 100644 --- a/src/Model/Term.php +++ b/src/Model/Term.php @@ -24,7 +24,7 @@ class Term $profile_base_diaspora = $profile_data['host'] . $profile_path . '/u/'; $fields = ['guid', 'uid', 'id', 'edited', 'deleted', 'created', 'received', 'title', 'body', 'tag', 'parent']; - $message = dba::selectFirst('item', $fields, ['id' => $itemid]); + $message = Item::selectFirst($fields, ['id' => $itemid]); if (!DBM::is_result($message)) { return; } @@ -130,7 +130,7 @@ class Term */ public static function insertFromFileFieldByItemId($itemid) { - $message = dba::selectFirst('item', ['uid', 'deleted', 'file'], ['id' => $itemid]); + $message = Item::selectFirst(['uid', 'deleted', 'file'], ['id' => $itemid]); if (!DBM::is_result($message)) { return; }