X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=thumb.php;h=fca25c55d28b51145c3da147aea3f73593f1e649;hb=7191028ade9c6bf83866259fc2d7e7dcd0ef16e9;hp=10c2419db1485ea209456614c59fc5b887ea9bb4;hpb=96906168cac0e9a7748511b48c369cf22c8406d5;p=lhc%2Fweb%2Fwiklou.git 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' ) ] ); } } }