| @@ 567-571 (lines=5) @@ | ||
| 564 | $newid = $GLOBALS['xoopsDB']->getInsertId(); |
|
| 565 | ||
| 566 | // Add item_tag to Tag-module |
|
| 567 | if (!$lid) { |
|
| 568 | $tagupdate = WfLinksUtility::updateTag($newid, $item_tag); |
|
| 569 | } else { |
|
| 570 | $tagupdate = WfLinksUtility::updateTag($lid, $item_tag); |
|
| 571 | } |
|
| 572 | ||
| 573 | // Send notifications |
|
| 574 | if (!$lid) { |
|
| @@ 99-103 (lines=5) @@ | ||
| 96 | $newid = $GLOBALS['xoopsDB']->getInsertId(); |
|
| 97 | ||
| 98 | // Add item_tag to Tag-module |
|
| 99 | if ($lid == 0) { |
|
| 100 | $tagupdate = WfLinksUtility::updateTag($newid, $item_tag); |
|
| 101 | } else { |
|
| 102 | $tagupdate = WfLinksUtility::updateTag($lid, $item_tag); |
|
| 103 | } |
|
| 104 | ||
| 105 | // Notify of new link (anywhere) and new link in category |
|
| 106 | $notificationHandler = xoops_getHandler('notification'); |
|