Changeset 484
- Timestamp:
- Aug 16, 2004, 11:42:54 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r465 r484 364 364 365 365 // calculation of width and height 366 if ( 367 { 368 $taille_image = @getimagesize( $lien_image);366 if (empty($picture['current']['width'])) 367 { 368 $taille_image = @getimagesize($picture['current']['src']); 369 369 $original_width = $taille_image[0]; 370 370 $original_height = $taille_image[1]; … … 529 529 )); 530 530 // filesize 531 if ( empty($picture['current']['filesize'])) 532 { 533 $poids = floor ( filesize( $picture['current']['url'] ) / 1024 ); 531 if (empty($picture['current']['filesize'])) 532 { 533 if (!$picture[$i]['is_picture']) 534 { 535 $filesize = floor(filesize($picture['current']['download'])/1024); 536 } 537 else 538 { 539 $filesize = floor(filesize($picture['current']['src'])/1024); 540 } 534 541 } 535 542 else 536 543 { 537 $ poids= $picture['current']['filesize'];544 $filesize = $picture['current']['filesize']; 538 545 } 539 546 540 547 $template->assign_block_vars('info_line', array( 541 548 'INFO'=>$lang['filesize'], 542 'VALUE'=>$ poids.' KB'549 'VALUE'=>$filesize.' KB' 543 550 )); 544 551 // keywords
Note: See TracChangeset
for help on using the changeset viewer.