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
a29df585
Commit
a29df585
authored
Jan 09, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed translations for messages intended for developers
parent
cc243457
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
EmailTarget.php
framework/yii/log/EmailTarget.php
+1
-1
Response.php
framework/yii/web/Response.php
+2
-2
VerbFilter.php
framework/yii/web/VerbFilter.php
+1
-3
No files found.
framework/yii/log/EmailTarget.php
View file @
a29df585
...
...
@@ -59,7 +59,7 @@ class EmailTarget extends Target
// moved initialization of subject here because of the following issue
// https://github.com/yiisoft/yii2/issues/1446
if
(
empty
(
$this
->
message
[
'subject'
]))
{
$this
->
message
[
'subject'
]
=
Yii
::
t
(
'yii'
,
'Application Log'
)
;
$this
->
message
[
'subject'
]
=
'Application Log'
;
}
$messages
=
array_map
([
$this
,
'formatMessage'
],
$this
->
messages
);
$body
=
wordwrap
(
implode
(
"
\n
"
,
$messages
),
70
);
...
...
framework/yii/web/Response.php
View file @
a29df585
...
...
@@ -386,7 +386,7 @@ class Response extends \yii\base\Response
$range
=
$this
->
getHttpRange
(
$contentLength
);
if
(
$range
===
false
)
{
$headers
->
set
(
'Content-Range'
,
"bytes */
$contentLength
"
);
throw
new
HttpException
(
416
,
Yii
::
t
(
'yii'
,
'Requested range not satisfiable'
)
);
throw
new
HttpException
(
416
,
'Requested range not satisfiable'
);
}
$headers
->
setDefault
(
'Pragma'
,
'public'
)
...
...
@@ -428,7 +428,7 @@ class Response extends \yii\base\Response
$range
=
$this
->
getHttpRange
(
$fileSize
);
if
(
$range
===
false
)
{
$headers
->
set
(
'Content-Range'
,
"bytes */
$fileSize
"
);
throw
new
HttpException
(
416
,
Yii
::
t
(
'yii'
,
'Requested range not satisfiable'
)
);
throw
new
HttpException
(
416
,
'Requested range not satisfiable'
);
}
list
(
$begin
,
$end
)
=
$range
;
...
...
framework/yii/web/VerbFilter.php
View file @
a29df585
...
...
@@ -100,9 +100,7 @@ class VerbFilter extends Behavior
$event
->
isValid
=
false
;
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.7
Yii
::
$app
->
getResponse
()
->
getHeaders
()
->
set
(
'Allow'
,
implode
(
', '
,
$allowed
));
throw
new
MethodNotAllowedHttpException
(
Yii
::
t
(
'yii'
,
'Method Not Allowed. This url can only handle the following request methods: {methods}.'
,
[
'methods'
=>
implode
(
', '
,
$allowed
),
]));
throw
new
MethodNotAllowedHttpException
(
'Method Not Allowed. This url can only handle the following request methods: '
.
implode
(
', '
,
$allowed
)
.
'.'
);
}
return
$event
->
isValid
;
...
...
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