Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c5e21595
Commit
c5e21595
authored
Jul 25, 2007
by
Gábor Hojtsy
Browse files
#159475
by paddy_deburca: maxheight is never defined, height should be used
parent
6ea74bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
c5e21595
...
...
@@ -725,7 +725,7 @@ function file_validate_image_resolution(&$file, $maximum_dimensions = 0, $minimu
if
(
$minimum_dimensions
)
{
// Check that it is larger than the given dimensions.
list
(
$width
,
$height
)
=
explode
(
'x'
,
$minimum_dimensions
);
if
(
$info
[
'width'
]
<
$width
||
$info
[
'height'
]
<
$
max
height
)
{
if
(
$info
[
'width'
]
<
$width
||
$info
[
'height'
]
<
$height
)
{
$errors
[]
=
t
(
'The image is too small; the minimum dimensions are %dimensions pixels.'
,
array
(
'%dimensions'
=>
$minimum_dimensions
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment