Skip to content

Commit

Permalink
Fixes #1111 - Incorrect reference to controller localization service
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhyder committed Jul 28, 2016
1 parent 9879890 commit 12f8d77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = function(pb) {
* @method
*/
GetMediaEmbedApiController.prototype.render = function(cb) {
var self = this;
var get = this.query;

//validation
Expand Down Expand Up @@ -83,7 +84,7 @@ module.exports = function(pb) {
else if (!html) {
return cb({
code: 400,
content: pb.BaseController.apiResponse(pb.BaseController.API_ERROR, this.ls.get('UNSUPPORTED_MEDIA'))
content: pb.BaseController.apiResponse(pb.BaseController.API_FAILURE, self.ls.get('UNSUPPORTED_MEDIA'))
});
}

Expand Down

0 comments on commit 12f8d77

Please sign in to comment.