updated: image size
This commit is contained in:
parent
4769dc30c0
commit
068016ae32
1 changed files with 7 additions and 7 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue