width and height mixed up
git-svn-id: file:///home/shish/svn/shimmie2/trunk@360 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
c5b3d38277
commit
7e3011f049
@ -18,9 +18,9 @@ class ResolutionLimit extends Extension {
|
|||||||
$image = $event->image;
|
$image = $event->image;
|
||||||
|
|
||||||
if($min_w > 0 && $image->width < $min_w) $event->veto("Image too small");
|
if($min_w > 0 && $image->width < $min_w) $event->veto("Image too small");
|
||||||
if($min_h > 0 && $image->height < $min_w) $event->veto("Image too small");
|
if($min_h > 0 && $image->height < $min_h) $event->veto("Image too small");
|
||||||
if($max_w > 0 && $image->width > $min_w) $event->veto("Image too large");
|
if($max_w > 0 && $image->width > $min_w) $event->veto("Image too large");
|
||||||
if($max_h > 0 && $image->height > $min_w) $event->veto("Image too large");
|
if($max_h > 0 && $image->height > $min_h) $event->veto("Image too large");
|
||||||
}
|
}
|
||||||
if(is_a($event, 'SetupBuildingEvent')) {
|
if(is_a($event, 'SetupBuildingEvent')) {
|
||||||
$sb = new SetupBlock("Resolution Limits");
|
$sb = new SetupBlock("Resolution Limits");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user