From 3905d4af3c1ff1807a3dc88d065e3333dc010fe0 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Thu, 1 Jul 2010 19:57:26 +0000 Subject: [PATCH] Make sure we use the right variable. Follow up r68848. --- skins/common/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins/common/upload.js b/skins/common/upload.js index 55f8c69eef..538c05c188 100644 --- a/skins/common/upload.js +++ b/skins/common/upload.js @@ -242,7 +242,7 @@ function fillDestFilename(id) { // Clear the filename if it does not have a valid extension. // URLs are less likely to have a useful extension, so don't include them in the // extension check. - if( $wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) { + if( wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) { var found = false; if( fname.lastIndexOf( '.' ) != -1 ) { var ext = fname.substr( fname.lastIndexOf( '.' ) + 1 ); -- 2.20.1