Merge pull request #4393 from MrPetovan/task/3878-move-include-tags-to-src
Move include/tags to src/
This commit is contained in:
+2
-2
@@ -1905,7 +1905,7 @@ function file_tag_save_file($uid, $item, $file)
|
||||
);
|
||||
}
|
||||
|
||||
Term::createFromItem($item);
|
||||
Term::insertFromFileFieldByItemId($item);
|
||||
|
||||
$saved = PConfig::get($uid, 'system', 'filetags');
|
||||
if (!strlen($saved) || !stristr($saved, '[' . file_tag_encode($file) . ']')) {
|
||||
@@ -1944,7 +1944,7 @@ function file_tag_unsave_file($uid, $item, $file, $cat = false)
|
||||
intval($uid)
|
||||
);
|
||||
|
||||
Term::createFromItem($item);
|
||||
Term::insertFromFileFieldByItemId($item);
|
||||
|
||||
$r = q("SELECT `oid` FROM `term` WHERE `term` = '%s' AND `otype` = %d AND `type` = %d AND `uid` = %d",
|
||||
dbesc($file),
|
||||
|
||||
Reference in New Issue
Block a user