diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-18 20:53:01 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-18 20:53:01 +1000 |
| commit | 80804b9df603a3bfeb3d2255351fffbaa29ce329 (patch) | |
| tree | 88b662c3f3cffb99a13fddcd51d17fac641c9967 | |
| parent | dcf97d6b5b5715388412f18544c2e63f877ba19f (diff) | |
Bugfix: $config['file_thumb'] being used incorrectly
| -rw-r--r-- | post.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -593,8 +593,10 @@ if (isset($_POST['delete'])) { // not an image //copy($config['file_thumb'], $post['thumb']); $post['thumb'] = 'file'; - - $size = @getimagesize($config['file_thumb']); + + $size = @getimagesize(sprintf($config['file_thumb'], + isset($config['file_icons'][$post['extension']]) ? + $config['file_icons'][$post['extension']] : $config['file_icons']['default'])); $post['thumbwidth'] = $size[0]; $post['thumbheight'] = $size[1]; } |
