Patch by Jimmy Collins <jimmy.collins@web.de>
* (bug 6012) Update to Indonesian localisation (id)
* (bug 6017) Update list of bookstores in German localisation files
* (bug 5187) Allow programmatically bypassing username validation, for scripts
-
+* (bug 6025) SpecialImport: wrong message when no file selected
== Compatibility ==
function newFromUpload( $fieldname = "xmlimport" ) {
$upload =& $_FILES[$fieldname];
- if( !isset( $upload ) ) {
+ if( !isset( $upload ) || !$upload['name'] ) {
return new WikiErrorMsg( 'importnofile' );
}
if( !empty( $upload['error'] ) ) {