Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Sep 8, 2013
1 parent ba4acd1 commit 908d4e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SlmMail/Service/MailgunService.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,14 @@ public function getRoute($id)
*/
public function updateRoute($id, $description = '', $expression = '', $actions = array(), $priority = 0)
{
$actions = (array) $actions;

$parameters = array(
'description' => $description,
'expression' => $expression,
'actions' => (array) $actions,
'action' => array_reverse($actions), // For unknown reasons, Mailgun API saves
// routes in the opposite order as you specify
// them, hence the array_reverse
'priority' => $priority
);

Expand Down

0 comments on commit 908d4e3

Please sign in to comment.