Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'release/openvbx_1.1'

  • Loading branch information...
commit 61ed715f93f35323a0dd33468e4a5054d9232595 2 parents 0c5c5bd + 0165f60
Chad Smith authored
Showing with 7 additions and 7 deletions.
  1. +4 −4 applets/match/twiml.php
  2. +3 −3 applets/regex/twiml.php
8 applets/match/twiml.php
View
@@ -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();
6 applets/regex/twiml.php
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.