From 7e3011f0493158126ce61d67c0875896c7475e58 Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 23 Jul 2007 18:22:18 +0000 Subject: [PATCH] width and height mixed up git-svn-id: file:///home/shish/svn/shimmie2/trunk@360 7f39781d-f577-437e-ae19-be835c7a54ca --- contrib/res_limit/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/res_limit/main.php b/contrib/res_limit/main.php index 2ae9b65b..75c0d53c 100644 --- a/contrib/res_limit/main.php +++ b/contrib/res_limit/main.php @@ -18,9 +18,9 @@ class ResolutionLimit extends Extension { $image = $event->image; 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_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')) { $sb = new SetupBlock("Resolution Limits");