diff --git a/app/assets/javascripts/discourse/controllers/upload_selector_controller.js b/app/assets/javascripts/discourse/controllers/upload_selector_controller.js index 1305899de37..6ffaff60601 100644 --- a/app/assets/javascripts/discourse/controllers/upload_selector_controller.js +++ b/app/assets/javascripts/discourse/controllers/upload_selector_controller.js @@ -35,7 +35,7 @@ Discourse.UploadSelectorController = Discourse.Controller.extend(Discourse.Modal Discourse.UploadSelectorController.reopenClass({ translate: function(key, options) { - opts = options || {}; + var opts = options || {}; if (Discourse.Utilities.allowsAttachments()) { key += "_with_attachments"; } return I18n.t("upload_selector." + key, opts); }