mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Standards and some more replace item calls
This commit is contained in:
parent
51a58ec2e2
commit
b705a91ccd
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue