Skip to content

Commit

Permalink
Edit account multilanguage api url
Browse files Browse the repository at this point in the history
  • Loading branch information
PSkierniewski committed Apr 4, 2016
1 parent b49725e commit e35cfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/account/edit.blade.php
Expand Up @@ -78,7 +78,7 @@
event.preventDefault();
Loading.start('#main-container');
$.ajax({
url: "/<?php echo $lang->code;?>/api/v1/account/ <?php echo $user->id;?>",
url: "/<?php echo (config('gzero.multilang.enabled')) ? $lang->code .'/' : '';?>api/v1/account/<?php echo $user->id; ?>",
data: $('#edit-account-form').serializeObject(),
type: 'PUT',
success: function (xhr) {
Expand Down

0 comments on commit e35cfba

Please sign in to comment.