updated: image size

This commit is contained in:
Mohammad Shoaib 2014-09-25 09:53:13 +00:00
parent 4769dc30c0
commit 068016ae32

View file

@ -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 ) {