From 25cbb68ea1d2e6298b2de6730906a6745e656d4c Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 18 Jul 2011 22:06:24 +1000 Subject: [PATCH] fixed display of image resolution/size, which was broken after the new image class was introduced --- post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post.php b/post.php index 1063a889..da46aa14 100644 --- a/post.php +++ b/post.php @@ -447,6 +447,8 @@ error($config['error']['maxsize']); } + $post['width'] = $image->size->width; + $post['height'] = $image->size->height; if($config['minimum_copy_resize'] && $image->size->width <= $config['thumb_width'] && @@ -468,6 +470,7 @@ $post['thumbwidth'] = $thumb->width; $post['thumbheight'] = $thumb->height; + $thumb->_destroy(); } $image->destroy();