Index: trunk/phase3/includes/Linker.php |
— | — | @@ -474,23 +474,20 @@ |
475 | 475 | function makeThumbLinkObj( $img, $label = '', $alt, $align = 'right', $boxwidth = 180, $boxheight=false, $framed=false , $manual_thumb = "" ) { |
476 | 476 | global $wgStylePath, $wgContLang; |
477 | 477 | $url = $img->getViewURL(); |
| 478 | + $thumbUrl = ''; |
478 | 479 | |
479 | 480 | $width = $height = 0; |
480 | | - if ( $img->exists() ) |
481 | | - { |
| 481 | + if ( $img->exists() ) { |
482 | 482 | $width = $img->getWidth(); |
483 | 483 | $height = $img->getHeight(); |
484 | 484 | } |
485 | | - if ( 0 == $width || 0 == $height ) |
486 | | - { |
| 485 | + if ( 0 == $width || 0 == $height ) { |
487 | 486 | $width = $height = 200; |
488 | 487 | } |
489 | | - if ( $boxwidth == 0 ) |
490 | | - { |
| 488 | + if ( $boxwidth == 0 ) { |
491 | 489 | $boxwidth = 200; |
492 | 490 | } |
493 | | - if ( $framed ) |
494 | | - { |
| 491 | + if ( $framed ) { |
495 | 492 | // Use image dimensions, don't scale |
496 | 493 | $boxwidth = $width; |
497 | 494 | $boxheight = $height; |