Rename Term methods ahead of the move

- Rename createFromItemURI() to insertFromItemFileByUri()
- Rename createFromItem() to insertFromItemFileById()
This commit is contained in:
Hypolite Petovan 2018-02-03 22:42:31 -05:00
parent d0c9e7939c
commit 0abe4158d2
4 changed files with 12 additions and 11 deletions

View file

@ -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),