X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=thumb.php;h=fca25c55d28b51145c3da147aea3f73593f1e649;hp=10c2419db1485ea209456614c59fc5b887ea9bb4;hb=2a02d037211e4c41350b45fcf157706b66efe48f;hpb=40a628a501fc05bb00e834fe359ca4061925f320 diff --git a/thumb.php b/thumb.php index 10c2419db1..fca25c55d2 100644 --- a/thumb.php +++ b/thumb.php @@ -320,7 +320,7 @@ function wfStreamThumb( array $params ) { RequestContext::getMain()->getStats()->timing( 'media.thumbnail.stream', $streamtime ); } else { wfThumbError( 500, 'Could not stream the file', null, [ 'file' => $thumbName, - 'path' => $thumbPath, 'error' => $status->getWikiText() ] ); + 'path' => $thumbPath, 'error' => $status->getWikiText( false, false, 'en' ) ] ); } return; } @@ -366,7 +366,8 @@ function wfStreamThumb( array $params ) { $status = $thumb->streamFileWithStatus( $headers ); if ( !$status->isOK() ) { wfThumbError( 500, 'Could not stream the file', null, [ - 'file' => $thumbName, 'path' => $thumbPath, 'error' => $status->getWikiText() ] ); + 'file' => $thumbName, 'path' => $thumbPath, + 'error' => $status->getWikiText( false, false, 'en' ) ] ); } } }