Index: trunk/phase3/skins/common/upload.js |
— | — | @@ -242,7 +242,7 @@ |
243 | 243 | // Clear the filename if it does not have a valid extension. |
244 | 244 | // URLs are less likely to have a useful extension, so don't include them in the |
245 | 245 | // extension check. |
246 | | - if( $wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) { |
| 246 | + if( wgStrictFileExtensions && wgFileExtensions && id != 'wpUploadFileURL' ) { |
247 | 247 | var found = false; |
248 | 248 | if( fname.lastIndexOf( '.' ) != -1 ) { |
249 | 249 | var ext = fname.substr( fname.lastIndexOf( '.' ) + 1 ); |