* (bug 16772) Special:Upload now correctly rejects files with spaces in the
file extension (e.g. Foo. jpg).
* Ensure that all HTML id's begin with a letter as required by XHTML standard
+* Image moving over an existing file no longer throws a database error
=== API changes in 1.14 ===
return;
}
+ // Delete an associated image if there is
+ $file = wfLocalFile( $nt );
+ if( $file->exists() ) {
+ $file->delete( wfMsgForContent( 'delete_and_move_reason' ), false );
+ }
+
// This may output an error message and exit
$article->doDelete( wfMsgForContent( 'delete_and_move_reason' ) );
}