mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
image.php: do not delete moved images
This commit is contained in:
parent
dd224cea58
commit
faa43cb8a6
@ -291,6 +291,7 @@ class ImageConvert extends ImageBase {
|
|||||||
} else {
|
} else {
|
||||||
rename($this->temp, $src);
|
rename($this->temp, $src);
|
||||||
chmod($src, 0664);
|
chmod($src, 0664);
|
||||||
|
$this->temp = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function width() {
|
public function width() {
|
||||||
@ -300,8 +301,10 @@ class ImageConvert extends ImageBase {
|
|||||||
return $this->height;
|
return $this->height;
|
||||||
}
|
}
|
||||||
public function destroy() {
|
public function destroy() {
|
||||||
@unlink($this->temp);
|
if ($this->temp !== false) {
|
||||||
$this->temp = false;
|
@unlink($this->temp);
|
||||||
|
$this->temp = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public function resize() {
|
public function resize() {
|
||||||
global $config;
|
global $config;
|
||||||
|
Loading…
Reference in New Issue
Block a user