Index: branches/REL1_6/phase3/includes/SpecialImport.php |
— | — | @@ -601,7 +601,7 @@ |
602 | 602 | function newFromUpload( $fieldname = "xmlimport" ) { |
603 | 603 | $upload =& $_FILES[$fieldname]; |
604 | 604 | |
605 | | - if( !isset( $upload ) ) { |
| 605 | + if( !isset( $upload ) || !$upload['name'] ) { |
606 | 606 | return new WikiErrorMsg( 'importnofile' ); |
607 | 607 | } |
608 | 608 | if( !empty( $upload['error'] ) ) { |
Index: branches/REL1_6/phase3/RELEASE-NOTES |
— | — | @@ -10,6 +10,7 @@ |
11 | 11 | * (bug 5857, 5957) Update for German localisation (de) |
12 | 12 | * (bug 5586) <gallery> treated text as links |
13 | 13 | * (bug 5957) Update for Hebrew language (he) |
| 14 | +* (bug 6025) SpecialImport: wrong message when no file selected |
14 | 15 | |
15 | 16 | == MediaWiki 1.6.5 == |
16 | 17 | |