Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
c8596fdb
Commit
c8596fdb
authored
Nov 05, 2013
by
Gudz Taras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed px to pixels
parent
960cb499
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ImageValidator.php
framework/yii/validators/ImageValidator.php
+3
-3
No files found.
framework/yii/validators/ImageValidator.php
View file @
c8596fdb
...
...
@@ -123,13 +123,13 @@ class ImageValidator extends FileValidator
$this
->
underWidth
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too small. The width cannot be smaller than {limit} pixels.'
);
}
if
(
$this
->
underHeight
===
null
)
{
$this
->
underHeight
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too small. The height cannot be smaller than {limit} p
x
.'
);
$this
->
underHeight
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too small. The height cannot be smaller than {limit} p
ixels
.'
);
}
if
(
$this
->
overWidth
===
null
)
{
$this
->
overWidth
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too large. The width cannot be larger than {limit} p
x
.'
);
$this
->
overWidth
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too large. The width cannot be larger than {limit} p
ixels
.'
);
}
if
(
$this
->
overHeight
===
null
)
{
$this
->
overHeight
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too large. The height cannot be larger than {limit} p
x
.'
);
$this
->
overHeight
=
Yii
::
t
(
'yii'
,
'The file "{file}" is too large. The height cannot be larger than {limit} p
ixels
.'
);
}
if
(
$this
->
wrongMimeType
===
null
)
{
$this
->
wrongMimeType
=
Yii
::
t
(
'yii'
,
'Only files with these mimeTypes are allowed: {mimeTypes}.'
);
...
...
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