[pLog-svn] r5258 - plog/branches/lifetype-1.2/class/gallery/resizers

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Apr 2 14:36:26 EDT 2007


Author: jondaley
Date: 2007-04-02 14:36:26 -0400 (Mon, 02 Apr 2007)
New Revision: 5258

Modified:
   plog/branches/lifetype-1.2/class/gallery/resizers/gallerygdresizer.class.php
Log:
copied chmod code from imagemagick resizer.  I wonder how I never noticed this before...

Modified: plog/branches/lifetype-1.2/class/gallery/resizers/gallerygdresizer.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/resizers/gallerygdresizer.class.php	2007-04-02 18:18:33 UTC (rev 5257)
+++ plog/branches/lifetype-1.2/class/gallery/resizers/gallerygdresizer.class.php	2007-04-02 18:36:26 UTC (rev 5258)
@@ -55,6 +55,10 @@
             if( !$this->save( $outFile ))
             	return false;
 
+                // depending on the default file creation settings in some hosts,
+                // files created may not be readable by the web server
+            File::chMod( $outFile, 0644 );
+
             return $outFile;
         }
         



More information about the pLog-svn mailing list