@@ 275-282 (lines=8) @@ | ||
272 | 'prop' => 'imageinfo' ] ); |
|
273 | $info = $this->getImageInfo( $data ); |
|
274 | ||
275 | if ( $data && $info && isset( $info['thumburl'] ) ) { |
|
276 | wfDebug( __METHOD__ . " got remote thumb " . $info['thumburl'] . "\n" ); |
|
277 | $result = $info; |
|
278 | ||
279 | return $info['thumburl']; |
|
280 | } else { |
|
281 | return false; |
|
282 | } |
|
283 | } |
|
284 | ||
285 | /** |
|
@@ 306-318 (lines=13) @@ | ||
303 | ] ); |
|
304 | $info = $this->getImageInfo( $data ); |
|
305 | ||
306 | if ( $data && $info && isset( $info['thumberror'] ) ) { |
|
307 | wfDebug( __METHOD__ . " got remote thumb error " . $info['thumberror'] . "\n" ); |
|
308 | ||
309 | return new MediaTransformError( |
|
310 | 'thumbnail_error_remote', |
|
311 | $width, |
|
312 | $height, |
|
313 | $this->getDisplayName(), |
|
314 | $info['thumberror'] // already parsed message from foreign repo |
|
315 | ); |
|
316 | } else { |
|
317 | return false; |
|
318 | } |
|
319 | } |
|
320 | ||
321 | /** |