Skip to content

Commit

Permalink
replace twig function now takes an array as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
paulandrieux committed Oct 11, 2017
1 parent 087fb02 commit 6583174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/toastr.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
hideMethod : '{{ options.hideMethod|default('fadeOut') }}'
};
var body = "{{ body|replace('\r\n|\n|\r', '<br/>')|raw|trans({}, translationDomain|default('messages')) }}";
var body = "{{ body|replace({'\r\n|\n|\r': '<br/>'})|raw|trans({}, translationDomain|default('messages')) }}";
delay({% if timeout is defined and timeout != null %} {{ timeout }}{% else %} 1000{% endif %} , function() {
return toastr.{{ type }}(body,"{{ title|default(("alert."~type~".label")|trans({}, translationDomain|default('messages'))) }}");
});
Expand Down

0 comments on commit 6583174

Please sign in to comment.