Delete images properly on error
This commit is contained in:
@@ -1122,7 +1122,14 @@
|
||||
return $res;
|
||||
}
|
||||
|
||||
function undoImage($post) {
|
||||
unlink($post['file']);
|
||||
unlink($post['thumb']);
|
||||
}
|
||||
|
||||
function createimage($type, $source_pic) {
|
||||
global $config;
|
||||
|
||||
$image = false;
|
||||
switch($type) {
|
||||
case 'jpg':
|
||||
|
Reference in New Issue
Block a user