summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-17 12:02:51 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-17 12:02:51 +1100
commit6ab3ec5da9f52f1061fb68bc91f8cc58903d86f5 (patch)
tree573422ec9f769fd56d70f46f67b70286202d3c19 /inc
parentb82e3a814a35fdc2dc19a83a104623f4dd429c51 (diff)
convert: chmod(664) after moving temporary image
Diffstat (limited to 'inc')
-rw-r--r--inc/image.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/image.php b/inc/image.php
index 13b24169..51dccfb4 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -231,6 +231,7 @@
}
public function to($src) {
rename($this->temp, $src);
+ chmod($src, 0664);
}
public function width() {
return $this->width;