summaryrefslogtreecommitdiff
path: root/plugins/calendar/lib/calendar_itip.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-10-17 09:54:25 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-10-17 09:54:25 (GMT)
commit2d08c58e56ebe9c0dd8c55679c887714178ed994 (patch)
tree7a4c5210fbfa9cdf5638181539c0b13d1a2a8bed /plugins/calendar/lib/calendar_itip.php
parent5be0b06fcbf61dacd493467b57041f808b04f1c7 (diff)
downloadroundcubemail-plugins-kolab-2d08c58e56ebe9c0dd8c55679c887714178ed994.tar.gz
Fix/prepare plugins to use out of Roundcube (where rcmail object doesn't exist)
Diffstat (limited to 'plugins/calendar/lib/calendar_itip.php')
-rw-r--r--plugins/calendar/lib/calendar_itip.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/calendar/lib/calendar_itip.php b/plugins/calendar/lib/calendar_itip.php
index 50f012f..dc4cfa0 100644
--- a/plugins/calendar/lib/calendar_itip.php
+++ b/plugins/calendar/lib/calendar_itip.php
@@ -103,7 +103,7 @@ class calendar_itip
// finally send the message
$this->itip_send = true;
- $sent = rcmail_deliver_message($message, $headers['X-Sender'], $mailto, $smtp_error);
+ $sent = $this->rc->deliver_message($message, $headers['X-Sender'], $mailto, $smtp_error);
$this->itip_send = false;
return $sent;
@@ -147,8 +147,8 @@ class calendar_itip
// compose common headers array
$headers = array(
'From' => $sender,
- 'Date' => rcmail_user_date(),
- 'Message-ID' => rcmail_gen_message_id(),
+ 'Date' => $this->rc->user_date(),
+ 'Message-ID' => $this->rc->gen_message_id(),
'X-Sender' => $from,
);
if ($agent = $this->rc->config->get('useragent'))