From: Derk-Jan Hartman Date: Thu, 1 Jul 2010 19:57:26 +0000 (+0000) Subject: Make sure we use the right variable. Follow up r68848. X-Git-Tag: 1.31.0-rc.0~36315 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22lang_raccourcis%22%2C%22module=%24nom_module%22%29%20.%20%22?a=commitdiff_plain;h=3905d4af3c1ff1807a3dc88d065e3333dc010fe0;p=lhc%2Fweb%2Fwiklou.git Make sure we use the right variable. Follow up r68848. --- 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 );