Changeset 2651 for branches/release-41/php/lib/MTUtil.php
- Timestamp:
- 06/30/08 02:26:07 (17 months ago)
- Files:
-
- 1 modified
-
branches/release-41/php/lib/MTUtil.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/php/lib/MTUtil.php
r2595 r2651 1301 1301 $dest; 1302 1302 $thumb_name = $static_file_path.DIRECTORY_SEPARATOR.$image_path.DIRECTORY_SEPARATOR.$format; 1303 $thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name, 'png'); 1303 if (!$thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name, 'png')) { 1304 return ''; 1305 } 1304 1306 $basename = basename($dest); 1305 1307 … … 1345 1347 $thumb_h = $height; 1346 1348 $dest; 1347 $thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name); 1349 if (!$thumb->get_thumbnail($dest, $thumb_w, $thumb_h, $scale, $thumb_name)) { 1350 return ''; 1351 } 1348 1352 1349 1353 # make url
