Replace references to include/tags functions

This commit is contained in:
Hypolite Petovan 2018-02-03 23:57:47 -05:00
parent d00c6111fd
commit 9f3acceac7
5 changed files with 15 additions and 13 deletions

View file

@ -70,7 +70,7 @@ class Item extends BaseObject
continue;
}
create_tags_from_item($item['id']);
Term::insertFromItemId($item['id']);
Term::insertFromItemFileById($item['id']);
update_thread($item['id']);
@ -152,7 +152,7 @@ class Item extends BaseObject
'edited' => DateTimeFormat::utcNow(), 'changed' => DateTimeFormat::utcNow()],
['id' => $item['id']]);
create_tags_from_item($item['id']);
Term::insertFromItemId($item['id']);
Term::insertFromItemFileById($item['id']);
delete_thread($item['id'], $item['parent-uri']);
@ -791,7 +791,7 @@ class Item extends BaseObject
* Due to deadlock issues with the "term" table we are doing these steps after the commit.
* This is not perfect - but a workable solution until we found the reason for the problem.
*/
create_tags_from_item($current_post);
Term::insertFromItemId($current_post);
Term::insertFromItemFileById($current_post);
if ($arr['parent-uri'] === $arr['uri']) {