Changeset 1829
- Timestamp:
- 04/10/08 02:57:41 (8 months ago)
- Files:
-
- branches/release-34/lib/MT/Asset/Image.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-34/lib/MT/Asset/Image.pm
r1174 r1829 101 101 Width => $i_w, Height => $i_h ); 102 102 ($i_h, $i_w) = @square{qw( Size Size )}; 103 if ( $param{Width} && !$param{Height} ) { 104 $param{Height} = $param{Width}; 105 } 106 elsif ( !$param{Width} && $param{Height} ) { 107 $param{Width} = $param{Height}; 108 } 103 109 } 104 110 … … 116 122 _get_dimension( $i_h, $i_w, $param{Height}, $param{Width} ); 117 123 118 my $file = $asset->thumbnail_filename( @_) or return;124 my $file = $asset->thumbnail_filename(%param) or return; 119 125 my $thumbnail = File::Spec->catfile( $asset_cache_path, $file ); 120 126 my @thumbinfo = stat($thumbnail);
