From 068016ae32e507e13cdcad8fe6f327adc92ac452 Mon Sep 17 00:00:00 2001 From: Mohammad Shoaib Date: Thu, 25 Sep 2014 09:53:13 +0000 Subject: [PATCH] updated: image size --- upload/plugins/cb_server_thumb/cb_server_thumb.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/upload/plugins/cb_server_thumb/cb_server_thumb.php b/upload/plugins/cb_server_thumb/cb_server_thumb.php index f10f6424..6be21b7f 100644 --- a/upload/plugins/cb_server_thumb/cb_server_thumb.php +++ b/upload/plugins/cb_server_thumb/cb_server_thumb.php @@ -204,13 +204,6 @@ if(!function_exists('server_thumb')) $size = ( !in_array( $size, $default ) or !$size ) ? 't' : $size; - list($width,$height) = explode('x',$array['size']); - if(isset($width) && is_numeric($width) && isset($height) && is_numeric($height) ) - { - $w = $width; - $h = $height; - } - if( $size=='l') { $w = 320; @@ -227,6 +220,13 @@ if(!function_exists('server_thumb')) $h = 60; } + list($width,$height) = explode('x',$array['size']); + if(isset($width) && is_numeric($width) && isset($height) && is_numeric($height) ) + { + $w = $width; + $h = $height; + } + $tim_postfix = '&type=photos&h='.$h.'&w='.$w.'&zc=1'; if( $directory ) {