]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/imagefile.php
Changed thumbnail-only chmod to attachment-general chmod as recommended by mmn.
[quix0rs-gnu-social.git] / lib / imagefile.php
index 80cd9023cd8f2bbbf8a821630ee5f001fc9c3c97..926617e6a26df9ff5c9dd8463e787c4725944e5a 100644 (file)
@@ -255,7 +255,7 @@ class ImageFile
                 @copy($this->filepath, $outpath);
 
                 // And set chmod
-                @chmod($outpath, common_config('thumbnail', 'chmod');
+                @chmod($outpath, common_config('attachments', 'chmod');
                 return $outpath;
             } elseif (abs($this->rotate) == 90) {
                 // Box is rotated 90 degrees in either direction,
@@ -355,7 +355,7 @@ class ImageFile
         }
 
         // Always chmod 0644 (default) to have other processes (e.g. queue daemon read it)
-        @chmod($outpath, common_config('thumbnail', 'chmod');
+        @chmod($outpath, common_config('attachments', 'chmod');
 
         imagedestroy($image_src);
         imagedestroy($image_dest);