X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2FForeignResourceManager.php;h=dddbad53349be99fd8055106a30a11549f11f2af;hb=3f134f0834d530107ab9b7a76edac934521bb8ad;hp=9fd1e4fe45b318f969c5a9d78a29f19ee008ef9d;hpb=bac8c6f63a1dac3dc64e3ad6b43895a6c6f2d14d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ForeignResourceManager.php b/includes/ForeignResourceManager.php index 9fd1e4fe45..dddbad5334 100644 --- a/includes/ForeignResourceManager.php +++ b/includes/ForeignResourceManager.php @@ -178,15 +178,13 @@ class ForeignResourceManager { if ( $integrity === $actualIntegrity ) { $this->verbose( "... passed integrity check for {$src}\n" ); $this->cacheSet( $key, $data ); + } elseif ( $this->action === 'make-sri' ) { + $this->output( "Integrity for {$src}\n\tintegrity: ${actualIntegrity}\n" ); } else { - if ( $this->action === 'make-sri' ) { - $this->output( "Integrity for {$src}\n\tintegrity: ${actualIntegrity}\n" ); - } else { - throw new Exception( "Integrity check failed for {$src}\n" . - "\tExpected: {$integrity}\n" . - "\tActual: {$actualIntegrity}" - ); - } + throw new Exception( "Integrity check failed for {$src}\n" . + "\tExpected: {$integrity}\n" . + "\tActual: {$actualIntegrity}" + ); } return $data; }