X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FDownloadImages.php;h=c83f96187f8a2c9b01479ae2a15cc34467065231;hb=bba94d74585e465f541e20c8aba2e95695435cc4;hp=c5298236a4f0159e4ba85d46a8d6b9c0cf7ff744;hpb=e0597476d1d5f6a4a7d6ea9b76966465f3d22fb8;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index c5298236..c83f9618 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php @@ -36,7 +36,7 @@ class DownloadImages { // if folder doesn't exist, attempt to create one and store the folder name in property $folder if (!file_exists($this->baseFolder)) { - mkdir($this->baseFolder, 0777, true); + mkdir($this->baseFolder, 0755, true); } } @@ -135,16 +135,16 @@ class DownloadImages switch ($ext) { case 'gif': - $result = imagegif($im, $localPath); + imagegif($im, $localPath); $this->logger->debug('DownloadImages: Re-creating gif'); break; case 'jpeg': case 'jpg': - $result = imagejpeg($im, $localPath, self::REGENERATE_PICTURES_QUALITY); + imagejpeg($im, $localPath, self::REGENERATE_PICTURES_QUALITY); $this->logger->debug('DownloadImages: Re-creating jpg'); break; case 'png': - $result = imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); + imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); $this->logger->debug('DownloadImages: Re-creating png'); }