@@ 1018-1022 (lines=5) @@ | ||
1015 | if (!parent::insert($item, $force)) { |
|
1016 | return false; |
|
1017 | } |
|
1018 | if ($xoops->isActiveModule('tag')) { |
|
1019 | // Storing tags information |
|
1020 | $tag_handler = $xoops->getModuleHandler('tag', 'tag'); |
|
1021 | $tag_handler->updateByItem($item->getVar('item_tag'), $item->getVar('itemid'), PUBLISHER_DIRNAME, 0); |
|
1022 | } |
|
1023 | return true; |
|
1024 | } |
|
1025 | ||
@@ 1046-1049 (lines=4) @@ | ||
1043 | return false; |
|
1044 | } |
|
1045 | // Removing tags information |
|
1046 | if ($xoops->isActiveModule('tag')) { |
|
1047 | $tag_handler = $xoops->getModuleHandler('tag', 'tag'); |
|
1048 | $tag_handler->updateByItem('', $item->getVar('itemid'), PUBLISHER_DIRNAME, 0); |
|
1049 | } |
|
1050 | return true; |
|
1051 | } |
|
1052 |