diff options
author | mrgoldy <gijsmartens1@gmail.com> | 2019-09-22 12:04:10 +0200 |
---|---|---|
committer | mrgoldy <gijsmartens1@gmail.com> | 2019-09-22 12:04:10 +0200 |
commit | c9284e1c687c4a76d6b8503f980eecc21bc35939 (patch) | |
tree | 0fc246eb49f2aa1848866ff2d0487173d51134f4 /phpBB/assets | |
parent | 8bc056ebe6d5876c6de2a2ca84bf234678c3e702 (diff) | |
download | forums-c9284e1c687c4a76d6b8503f980eecc21bc35939.tar forums-c9284e1c687c4a76d6b8503f980eecc21bc35939.tar.gz forums-c9284e1c687c4a76d6b8503f980eecc21bc35939.tar.bz2 forums-c9284e1c687c4a76d6b8503f980eecc21bc35939.tar.xz forums-c9284e1c687c4a76d6b8503f980eecc21bc35939.zip |
[ticket/16076] camelCase and callback
PHPBB3-16076
Diffstat (limited to 'phpBB/assets')
-rw-r--r-- | phpBB/assets/javascript/plupload.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/assets/javascript/plupload.js b/phpBB/assets/javascript/plupload.js index ab6d0d7e88..f82da1acb1 100644 --- a/phpBB/assets/javascript/plupload.js +++ b/phpBB/assets/javascript/plupload.js @@ -449,13 +449,13 @@ phpbb.plupload.initialize(); /** * Add a file filter to check for max file sizes per mime type. */ -plupload.addFileFilter('mime_types_max_file_size', function(types, file, cb) { +plupload.addFileFilter('mime_types_max_file_size', function(types, file, callback) { if (file.size !== 'undefined') { $(types).each(function(i, type) { let extensions = [], - exts_array = type.extensions.split(','); + extsArray = type.extensions.split(','); - $(exts_array).each(function(i, extension) { + $(extsArray).each(function(i, extension) { /^\s*\*\s*$/.test(extension) ? extensions.push("\\.*") : extensions.push("\\." + extension.replace(new RegExp("[" + "/^$.*+?|()[]{}\\".replace(/./g, "\\$&") + "]", "g"), "\\$&")); }); @@ -470,12 +470,12 @@ plupload.addFileFilter('mime_types_max_file_size', function(types, file, cb) { file: file }); - cb(false); + callback(false); } else { - cb(true); + callback(true); } } else { - cb(true); + callback(true); } return false; |