backport parseInt fix for thumbs

This commit is contained in:
Barış Soner Uşaklı
2016-01-13 22:50:00 +02:00
parent cccc567854
commit 3a475cbbce

View File

@@ -73,7 +73,7 @@ uploadsController.uploadThumb = function(req, res, next) {
}
if (uploadedFile.type.match(/image./)) {
var size = meta.config.topicThumbSize || 120;
var size = parseInt(meta.config.topicThumbSize, 10) || 120;
image.resizeImage({
path: uploadedFile.path,
extension: path.extname(uploadedFile.name),