Skip to content

Commit

Permalink
Fix bug [Uncaught SyntaxError: Unexpected token o in JSON at position…
Browse files Browse the repository at this point in the history
… 1 - Issue 9](Romano83#9)
  • Loading branch information
[email protected] authored and virusvn committed Oct 31, 2016
1 parent b7762ea commit ebc4a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/MediasController.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function upload($ref, $refId)
$id = isset($this->request->query['id']) ? $this->request->query['id'] : false;
$this->set(\compact('media', 'thumbID', 'editor', 'id'));
$this->viewBuilder()->layout('json');
$this->render('media');
$this->render('media2');
}

/**
Expand Down

0 comments on commit ebc4a38

Please sign in to comment.