| @@ 67-72 (lines=6) @@ | ||
| 64 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
| 65 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
| 66 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
| 67 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
| 68 | $attachment_array = $attachmentObj->toArray(); |
|
| 69 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 70 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 71 | $letterTpl->append('attachments', $attachment_array); |
|
| 72 | } |
|
| 73 | // extra data |
|
| 74 | $letterTpl->assign('date', time()); // new from v1.3 |
|
| 75 | $letterTpl->assign('unsubscribe_url', '#'); |
|
| @@ 533-538 (lines=6) @@ | ||
| 530 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
| 531 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
| 532 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
| 533 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
| 534 | $attachment_array = $attachmentObj->toArray(); |
|
| 535 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 536 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 537 | $letterTpl->append('attachments', $attachment_array); |
|
| 538 | } |
|
| 539 | // extra data |
|
| 540 | $letterTpl->assign('date', time()); // new from v1.3 |
|
| 541 | $letterTpl->assign('xoops_url', XOOPS_URL); // new from v1.3 |
|
| @@ 247-252 (lines=6) @@ | ||
| 244 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
| 245 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
| 246 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
| 247 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
| 248 | $attachment_array = $attachmentObj->toArray(); |
|
| 249 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 250 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 251 | $letterTpl->append('attachments', $attachment_array); |
|
| 252 | } |
|
| 253 | // extra data |
|
| 254 | $letterTpl->assign('date', time()); // new from v1.3 |
|
| 255 | $letterTpl->assign('xoops_url', XOOPS_URL); // new from v1.3 |
|
| @@ 148-153 (lines=6) @@ | ||
| 145 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
| 146 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
| 147 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
| 148 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
| 149 | $attachment_array = $attachmentObj->toArray(); |
|
| 150 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 151 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
| 152 | $xoopsTpl->append('attachments', $attachment_array); |
|
| 153 | } |
|
| 154 | // extra data |
|
| 155 | $xoopsTpl->assign('date', time()); // new from v1.3 |
|
| 156 | $xoopsTpl->assign('unsubscribe_url', XOOPS_URL . '/modules/xnewsletter/'); |
|