Browse Source

FIX Creation of thumb image for size "small" was not done.

Laurent Destailleur 9 years ago
parent
commit
66f9f0d046
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/core/lib/files.lib.php

+ 1 - 1
htdocs/core/lib/files.lib.php

@@ -1482,7 +1482,7 @@ function dol_add_file_process($upload_dir, $allowoverwrite=0, $donotupdatesessio
 					{
 						// Create small thumbs for image (Ratio is near 16/9)
 						// Used on logon for example
-						$imgThumbSmall = vignette($destpath, $maxwidthsmall, $maxheigthsmall, '_small', 50, "thumbs");
+						$imgThumbSmall = vignette($destpath, $maxwidthsmall, $maxheightsmall, '_small', 50, "thumbs");
 						// Create mini thumbs for image (Ratio is near 16/9)
 						// Used on menu or for setup page for example
 						$imgThumbMini = vignette($destpath, $maxwidthmini, $maxheightmini, '_mini', 50, "thumbs");