ソースを参照

Fixing image resize in hotspot when image is a square

Julio Montoya 15 年 前
コミット
f5927a078e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      main/exercice/hotspot.class.php

+ 1 - 1
main/exercice/hotspot.class.php

@@ -70,7 +70,7 @@ class HotSpot extends Question {
 			if (file_exists($picturePath.'/'.$this->picture)) { 
 				//list($width,$height) = @getimagesize($file_info['tmp_name']); does not work	
 				list($width,$height) = @getimagesize($picturePath.'/'.$this->picture);				
-				if($width>=$height) {
+				if($width>$height) {
 					$this->resizePicture('width',545);
 				} else {
 					$this->resizePicture('height',350);