Merge "Use copy if symlink fails"
This commit is contained in:
commit
e74919fc56
1 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue