summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-03 20:50:37 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-03 20:50:37 -0400
commitb67fc7d54e3fbde2f9e117a961998c5f8440679a (patch)
treefc0a1d46c81cdfe7a4091938c8b8f656505bf60f /post.php
parent5300ffadf1c7faf3f505a585f2223fb6448b86bf (diff)
Only use `identify` if we have to
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 905110d4..434bc7e2 100644
--- a/post.php
+++ b/post.php
@@ -464,7 +464,7 @@ if (isset($_POST['delete'])) {
}
// create image object
- $image = new Image($upload, $post['extension']);
+ $image = new Image($upload, $post['extension'], $size);
if ($image->size->width > $config['max_width'] || $image->size->height > $config['max_height']) {
$image->delete();
error($config['error']['maxsize']);