diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-19 01:07:04 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-19 01:07:04 +1000 |
| commit | 154fbf50701652194d40cfdbfaa9eb4751678afb (patch) | |
| tree | 4e41916baabb5b6308416315a42464f749adb067 /inc/functions.php | |
| parent | 844a337e03b59c05b2b99cd2085aaec2c0648960 (diff) | |
Huge bug: undoImage() was not working at all. This means lots of Tinyboard users probably have lone/permanent images. Working on Tinyboard-Tools script to remove all images/thumbs that don't belong.
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/functions.php b/inc/functions.php index 259245f3..d5348f0d 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1859,10 +1859,10 @@ function undoImage(array $post) { if (!$post['has_file']) return; - if (isset($post['file'])) - file_unlink($post['file']); - if (isset($post['thumb'])) - file_unlink($post['thumb']); + if (isset($post['file_path'])) + file_unlink($post['file_path']); + if (isset($post['thumb_path'])) + file_unlink($post['thumb_path']); } function rDNS($ip_addr) { |
