From 87d22ea80f5268a7644c4476773f0710b7fcfd05 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 22 Nov 2013 14:58:03 +0400 Subject: [PATCH] =?UTF-8?q?MIRSPORTA-73=20-=20=D0=9A=D0=B0=D1=87=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B2=D0=BE=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD?= =?UTF-8?q?=D0=BE=D0=BA.=20=D0=A0=D0=B5=D1=81=D0=B0=D0=BC=D0=BF=D0=BB?= =?UTF-8?q?=D0=B8=D0=BD=D0=B3=20=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=20=D0=B4=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=83=D0=BF=D0=B0=20(=D0=B7=D0=B0=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D1=8C=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF?= =?UTF-8?q?=D1=8B)=20=D0=BD=D0=B0=20=D1=84=D0=B0=D0=B9=D0=BB,=20=D1=81?= =?UTF-8?q?=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D1=8F=D0=B5=D0=BC=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B5=20=D0=B8=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Upload.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Upload.class.php b/Upload.class.php index 6f0f570..4a51706 100644 --- a/Upload.class.php +++ b/Upload.class.php @@ -92,6 +92,7 @@ abstract class Upload } $image->type = $greagwar_image->guessType(); $file_path = $greagwar_image->cacheFile($image->type, $quality = 100, true); + chmod($file_path, 0664); $image->size = filesize($file_path); $path_parts = pathinfo($file_path); $image->path = preg_replace('#^' . Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);