summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/webcal/send_reminders.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-09 02:33:06 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-09 02:33:06 (GMT)
commit1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e (patch)
treef336ee91ce16c6591fff50340562e07e15aa1a55 /abs/mv-core/webcal/send_reminders.patch
parent75b1bceb21faab32d8f519d6f7f7062a226f9047 (diff)
downloadlinhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.zip
linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.tar.gz
linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.tar.bz2
MythVantage specific pkgs
Diffstat (limited to 'abs/mv-core/webcal/send_reminders.patch')
-rw-r--r--abs/mv-core/webcal/send_reminders.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/mv-core/webcal/send_reminders.patch b/abs/mv-core/webcal/send_reminders.patch
new file mode 100644
index 0000000..9076b0c
--- /dev/null
+++ b/abs/mv-core/webcal/send_reminders.patch
@@ -0,0 +1,38 @@
+--- send_reminders.php.orig 2008-08-04 18:02:14.000000000 -0500
++++ send_reminders.php 2008-08-07 15:15:28.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/php -q
++#!/usr/bin/php -q
+ <?php
+ /* $Id: send_reminders.php,v 1.81.2.8 2008/02/18 17:42:02 cknudsen Exp $
+ *
+@@ -313,6 +313,10 @@
+ translate ( 'could not find event id XXX in database.' ) ) . "\n";
+ return;
+ }
++ //Always send via ghosd
++ $name = $row[9];
++ $p = system("/usr/bin/notify.py NFO \"$name\"", $retval);
++
+
+ // Send mail. We send one user at a time so that we can switch
+ // languages between users if needed (as well as HTML vs plain text).
+@@ -475,7 +479,6 @@
+ }
+
+ $subject = translate ( 'Reminder' ) . ': ' . stripslashes ( $name );
+-
+ if ( $debug )
+ echo "Sending mail to $recip (in $userlang).<br />\n";
+
+@@ -570,7 +573,9 @@
+ }
+ // Factor in repeats if set.
+ if ( $repeats > 0 && $times_sent <= $repeats )
+- $remind_time += ( $reminder['duration'] * 60 * $times_sent );
++ $remind_time = ($reminder['duration']*60 + $lastsent );
++// Don't know what this is line is doing, but the above seems better to me
++// $remind_time += ( $reminder['duration'] * 60 * $times_sent );
+
+ if ( $debug )
+ echo ( empty ( $offset_msg ) ? '' : $offset_msg . '<br />' ) . '