| @@ 466-470 (lines=5) @@ | ||
| 463 | $file->error = $this->get_error_message('max_width'); |
|
| 464 | return false; |
|
| 465 | } |
|
| 466 | if ($this->options['max_height'] && $img_height > $this->options['max_height']) { |
|
| 467 | $file->error = $this->get_error_message('max_height'); |
|
| 468 | return false; |
|
| 469 | } |
|
| 470 | if ($this->options['min_width'] && $img_width < $this->options['min_width']) { |
|
| 471 | $file->error = $this->get_error_message('min_width'); |
|
| 472 | return false; |
|
| 473 | } |
|
| @@ 474-478 (lines=5) @@ | ||
| 471 | $file->error = $this->get_error_message('min_width'); |
|
| 472 | return false; |
|
| 473 | } |
|
| 474 | if ($this->options['min_height'] && $img_height < $this->options['min_height']) { |
|
| 475 | $file->error = $this->get_error_message('min_height'); |
|
| 476 | return false; |
|
| 477 | } |
|
| 478 | } |
|
| 479 | return true; |
|
| 480 | } |
|
| 481 | ||