Permalink
Browse files

Fix the issue that can cause pencilblue crashing when there is an uns…

…upported media in the client editor
  • Loading branch information...
Vu Nguyen
Vu Nguyen committed Feb 23, 2017
1 parent 5575854 commit 6dbf5725b912a73b7c93eb23a1550796acc89f85
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/pencilblue/controllers/api/content/get_media_embed.js
@@ -85,7 +85,7 @@ module.exports = function(pb) {
else if (!html) {
return cb({
code: 400,
content: pb.BaseController.apiResponse(pb.BaseController.API_FAILURE, this.ls.g('generic.UNSUPPORTED_MEDIA'))
content: pb.BaseController.apiResponse(pb.BaseController.API_FAILURE, self.ls.g('generic.UNSUPPORTED_MEDIA'))
});
}

0 comments on commit 6dbf572

Please sign in to comment.