| @@ 365-369 (lines=5) @@ | ||
| 362 | $newid = $GLOBALS['xoopsDB']->getInsertId(); |
|
| 363 | ||
| 364 | // Add item_tag to Tag-module |
|
| 365 | if (!$lid) { |
|
| 366 | $tagupdate = XoopstubeUtilities::xtubeUpdateTag($newid, $item_tag); |
|
| 367 | } else { |
|
| 368 | $tagupdate = XoopstubeUtilities::xtubeUpdateTag($lid, $item_tag); |
|
| 369 | } |
|
| 370 | ||
| 371 | // Send notifications |
|
| 372 | if (!$lid) { |
|
| @@ 82-86 (lines=5) @@ | ||
| 79 | $newid = $GLOBALS['xoopsDB']->getInsertId(); |
|
| 80 | ||
| 81 | // Add item_tag to Tag-module |
|
| 82 | if ($lid == 0) { |
|
| 83 | $tagupdate = XoopstubeUtilities::xtubeUpdateTag($newid, $item_tag); |
|
| 84 | } else { |
|
| 85 | $tagupdate = XoopstubeUtilities::xtubeUpdateTag($lid, $item_tag); |
|
| 86 | } |
|
| 87 | ||
| 88 | // Notify of new link (anywhere) and new link in category |
|
| 89 | $notificationHandler = xoops_getHandler('notification'); |
|