Permalink
Browse files

Merge branch 'release/openvbx_1.1'

  • Loading branch information...
2 parents 0c5c5bd + 0165f60 commit 61ed715f93f35323a0dd33468e4a5054d9232595 @chadsmith committed Nov 3, 2011
Showing with 7 additions and 7 deletions.
  1. +4 −4 applets/match/twiml.php
  2. +3 −3 applets/regex/twiml.php
View
8 applets/match/twiml.php
@@ -7,11 +7,11 @@
$responses = (array) AppletInstance::getDropZoneUrl('responses[]');
$menu_items = AppletInstance::assocKeyValueCombine($keys, $responses, 'strtolower');
-$response = new Response();
+$response = new TwimlResponse;
if(array_key_exists($body, $menu_items) && !empty($menu_items[$body]))
- $response->addRedirect($menu_items[$body]);
+ $response->redirect($menu_items[$body]);
elseif(!empty($invalid_option))
- $response->addRedirect($invalid_option);
+ $response->redirect($invalid_option);
-$response->Respond();
+$response->respond();
View
6 applets/regex/twiml.php
@@ -6,7 +6,7 @@
$menu_items = AppletInstance::assocKeyValueCombine($keys, $responses);
$next = AppletInstance::getDropZoneUrl('invalid-option');
-$response = new Response();
+$response = new TwimlResponse;
foreach($menu_items as $regex => $redirect)
if(!empty($regex) && preg_match("/" . $regex . "/i", $body)) {
@@ -15,6 +15,6 @@
}
if(!empty($next))
- $response->addRedirect($next);
+ $response->redirect($next);
-$response->Respond();
+$response->respond();

0 comments on commit 61ed715

Please sign in to comment.