X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignAPIRepo.php;h=346ec8ec1535b7bf7de51a7c125ae994f345ff4b;hp=9e4b6dfd717942cd34c22ac0df153d63bd9d3ebf;hb=c13fee87d42bdd6fdf6764edb6f6475c14c27749;hpb=10cecf294c0d032be9cfcc95f712a56ef88c0fb4 diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 9e4b6dfd71..346ec8ec15 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -348,14 +348,11 @@ class ForeignAPIRepo extends FileRepo { if ( !$knownThumbUrls ) { /* No knownThumbUrls for this file */ $knownThumbUrls = []; - } else { - if ( isset( $knownThumbUrls[$sizekey] ) ) { - wfDebug( __METHOD__ . ': Got thumburl from local cache: ' . - "{$knownThumbUrls[$sizekey]} \n" ); + } elseif ( isset( $knownThumbUrls[$sizekey] ) ) { + wfDebug( __METHOD__ . ': Got thumburl from local cache: ' . + "{$knownThumbUrls[$sizekey]} \n" ); - return $knownThumbUrls[$sizekey]; - } - /* This size is not yet known */ + return $knownThumbUrls[$sizekey]; } $metadata = null;