From 49b2bc481b451b3b92b76a42ddf0a732e4cb7dd4 Mon Sep 17 00:00:00 2001 From: Daniel Camargo Date: Tue, 28 May 2013 10:56:07 -0300 Subject: [PATCH] partial #1360 --- include/library/Crunchbutton/Promo.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/library/Crunchbutton/Promo.php b/include/library/Crunchbutton/Promo.php index 1ec3cf3d5..46569fa0a 100644 --- a/include/library/Crunchbutton/Promo.php +++ b/include/library/Crunchbutton/Promo.php @@ -169,9 +169,9 @@ class Crunchbutton_Promo extends Cana_Table public function queNotifySMS() { $gift = $this; - c::timeout(function() use( $gift ) { + // c::timeout(function() use( $gift ) { $gift->notifySMS(); - }); + // }); } public function queNotifyEMAIL() { @@ -241,7 +241,7 @@ class Crunchbutton_Promo extends Cana_Table 'method' => '$promo->notifySMS()', 'type' => 'promo_sms' ]); - /* + $env = c::env() == 'live' ? 'live' : 'dev'; $twilio = new Twilio(c::config()->twilio->{$env}->sid, c::config()->twilio->{$env}->token); @@ -279,7 +279,6 @@ class Crunchbutton_Promo extends Cana_Table $msg ); } - //*/ } public static function find($search = []) {