Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
set tiny size for sites that may not have it set
Browse files Browse the repository at this point in the history
  • Loading branch information
cash committed May 20, 2013
1 parent 824d1e7 commit 83c2cb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/resize.php
Expand Up @@ -35,6 +35,10 @@ function tp_create_gd_thumbnails($file, $prefix, $filestorename) {
// tiny thumbail
$thumb->setFilename($prefix."thumb".$filestorename);
$thumbname = $thumb->getFilenameOnFilestore();
if (empty($image_sizes['tiny_image_width'])) {
// sites upgraded from 1.6 may not have this set
$image_sizes['tiny_image_width'] = $image_sizes['tiny_image_height'] = 60;
}
$rtn_code = tp_gd_resize( $file->getFilenameOnFilestore(),
$thumbname,
FALSE,
Expand Down

0 comments on commit 83c2cb9

Please sign in to comment.