Merge "Use copy if symlink fails"

This commit is contained in:
jenkins-bot 2022-04-30 14:31:08 +00:00 committed by Gerrit Code Review
commit e74919fc56

View file

@ -284,6 +284,10 @@ class SvgHandler extends ImageHandler {
rmdir( $tmpDir );
AtEase::restoreWarnings();
} );
if ( !$ok ) {
// Fallback because symlink often fails on Windows
$ok = copy( $srcPath, $lnPath );
}
if ( !$ok ) {
wfDebugLog( 'thumbnail',
sprintf( 'Thumbnail failed on %s: could not link %s to %s',