[pLog-svn] r4565 - plog/trunk/class/gallery/resizers
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Jan 19 13:16:55 GMT 2007
Author: oscar
Date: 2007-01-19 13:16:54 +0000 (Fri, 19 Jan 2007)
New Revision: 4565
Modified:
plog/trunk/class/gallery/resizers/galleryimagemagickresizer.class.php
Log:
I needed to reset the file attributes after being generated in my hosting, I guess because of the system-wide umask settings,
otherwise they'd end up as 0600 and unreadable by the web server
Modified: plog/trunk/class/gallery/resizers/galleryimagemagickresizer.class.php
===================================================================
--- plog/trunk/class/gallery/resizers/galleryimagemagickresizer.class.php 2007-01-19 13:02:39 UTC (rev 4564)
+++ plog/trunk/class/gallery/resizers/galleryimagemagickresizer.class.php 2007-01-19 13:16:54 UTC (rev 4565)
@@ -40,6 +40,11 @@
// check if there was an error creating the thubmnail
if($cmdOutput === FALSE || $retval )
return false;
+
+ // depending on the default file creation settings in some hosts, files created via
+ // ImageMagick may not be readable by the web server
+ File::chMod( $outFile, 0644 );
+
return $outFile;
}
}
More information about the pLog-svn
mailing list