mirror of
https://github.com/friendica/friendica
synced 2025-04-28 10:24:23 +02:00
Rename Term methods ahead of the move
- Rename createFromItemURI() to insertFromItemFileByUri() - Rename createFromItem() to insertFromItemFileById()
This commit is contained in:
parent
d0c9e7939c
commit
0abe4158d2
4 changed files with 12 additions and 11 deletions
|
@ -1901,7 +1901,7 @@ function file_tag_save_file($uid, $item, $file)
|
|||
);
|
||||
}
|
||||
|
||||
Term::createFromItem($item);
|
||||
Term::insertFromItemFileById($item);
|
||||
|
||||
$saved = PConfig::get($uid, 'system', 'filetags');
|
||||
if (!strlen($saved) || !stristr($saved, '[' . file_tag_encode($file) . ']')) {
|
||||
|
@ -1940,7 +1940,7 @@ function file_tag_unsave_file($uid, $item, $file, $cat = false)
|
|||
intval($uid)
|
||||
);
|
||||
|
||||
Term::createFromItem($item);
|
||||
Term::insertFromItemFileById($item);
|
||||
|
||||
$r = q("SELECT `oid` FROM `term` WHERE `term` = '%s' AND `otype` = %d AND `type` = %d AND `uid` = %d",
|
||||
dbesc($file),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue