Revert "Fix issue in images cache permissions"

This reverts commit 7e3058e3f0.
This commit is contained in:
Flavio Copes
2015-12-12 10:18:32 +01:00
parent 7e3058e3f0
commit 566c5cb38f

View File

@@ -80,7 +80,8 @@ class ImageFile extends Image
// Asking the cache for the cacheFile
try {
$perms = (string)self::getGrav()['config']->get('system.images.cache_perms', '0755');
$perms = self::getGrav()['config']->get('system.images.cache_perms', '0755');
$perms = octdec($perms);
$file = $this->cache->setDirectoryMode($perms)->getOrCreateFile($cacheFile, $conditions, $generate, $actual);
} catch (GenerationError $e) {
$file = $e->getNewFile();