summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index d0929eef..535defb5 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -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':