summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew morton2008-09-09 18:56:46 (GMT)
committer andrew morton2008-09-09 18:56:46 (GMT)
commita5811c0f016233d7ce8ff1c05bf5094c09a722bb (patch)
treed5d746d6a4ae0e904f0a96cc9f10d3b37e300edb
parent4ece7959305bc33589f4887c8842105da7253363 (diff)
#304077 by Moonshine, Follow-up little string cleanup...
-rw-r--r--filefield.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/filefield.module b/filefield.module
index c5b53a1..76be2a8 100644
--- a/filefield.module
+++ b/filefield.module
@@ -639,7 +639,12 @@ function filefield_validate_image_resolution(&$file, $maximum_dimensions = 0, $m
function filefield_validate_image_resolution_help($max_size = '0', $min_size = '0') {
if (!empty($max_size)) {
if (!empty($min_size)) {
- return t('Images must be between @min_size pixels and @max_size', array('@max_size' => $max_size, '@min_size' => $min_size));
+ if ($max_size == $min_size) {
+ return t('Images must be exactly @min_size pixels', array('@min_size' => $min_size));
+ }
+ else {
+ return t('Images must be between @min_size pixels and @max_size', array('@max_size' => $max_size, '@min_size' => $min_size));
+ }
}
else {
if (image_get_toolkit()) {